Emails not being sent

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

By gversion - February 24, 2012

Hello,

I hired you guys to setup an email contact form that saves the message data in cmsBuilder and also sends an email template to both the buyer (the person enquiring) and the seller (the listing advertiser).

The data is being saved in cmsBuilder but the Template Emails are not being sent any more.

I was receiving a lot of spam so I added a hidden field that must not be filled out in order for the form to be submitted and since doing this I think the form has stopped working. I have now removed the hidden field to try and get things back to how they originally were.

Would you be able to have a look at the attached file and help me fix it please?

Thank you,
Greg
Attachments:

needsfixing.php 22K

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: [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/