Emails not being sent

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

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 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

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/