Emails not being sent

5 posts by 2 authors in: Forums > CMS Builder
Last Post: February 28, 2012   (RSS)

Re: [gversion] Emails not being sent

By gversion - February 25, 2012

Hi,

I am wondering if this is not working because you guys upgraded me from version 2.10 to version 2.14.

Perhaps the sendMessage hook has changed somehow or something else now works slightly differently?

Thanks again,
Greg

Re: [gversion] Emails not being sent

By Jason - February 27, 2012

Hi,

The upgrade shouldn't affect the forms ability to send an email. I see that the form sends 3 emails, do all 3 not go through? Did the form work before you added the anti-spam protection?

The reason that you're not receiving the admin emails is that those emails are being sent to admin@mydomain.co.uk:

//email admin
$errors = sendMessage(contact_emailTemplate(array(
'template_id' => 'MESSAGE-BUYER-SELLER',
'placeholders' => $placeholders,
'from' => $_REQUEST['email'],
'to' => 'admin@mydomain.co.uk',
'subject' => htmlspecialchars($_REQUEST['subject'])
)));


Your "buyer" email is also being sent FROM this email:

// email buyer
$placeholders['from'] = 'admin@mydomain.co.uk';
$placeholders['to'] = $_REQUEST['email'];
$errors = sendMessage(contact_emailTemplate(array(
'template_id' => 'MESSAGE-SELLER-BUYER',
'placeholders' => $placeholders,
'from' => 'admin@mydomain.co.uk',
'to' => $_REQUEST['email'],
'subject' => htmlspecialchars($_REQUEST['subject'])
)));


Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Emails not being sent

By gversion - February 27, 2012

Hi Jason,

Thanks for your reply.

Yes, there are 3 emails that have been setup to be sent but none of them are being received. The form worked fine before I added the "hidden" field. Something else must have changed but I just can't see anything wrong...

Could it be that another file is required to send the emails and perhaps this file is missing (it may have been deleted during the upgrade)?

I changed the email address in the code I sent you for privacy reasons on the forum :) It is actually setup to go to a valid email address.

Any other ideas?

Thanks,
Greg

Re: [gversion] Emails not being sent

By Jason - February 28, 2012

Hi Greg,

Okay. I think the next step would be to fill out a [url http://www.interactivetools.com/support] 2nd Level Support Request[/url] so we can take a closer look. Also, let us know which files are involved in this form.

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/