Email not sent from forms

Permalink 1 user found helpful
Just installed the Reliance Theme for my new church website. I have created a standard form on the contact page. I have checked the box to have an email sent to me when a user submits the form. I am using the Default PHP Mail settings. When I test them, I get an email and everything looks fine. However, when I fill out the contact form, I do not get an email. My log looks like this:

**EMAILS ARE ENABLED. THIS EMAIL WAS SENT TO mail()**
Template Used: block_form_submission
To: Webmaster@wrensumc.com
From: bigjohn767@yahoo.com
Reply-To: bigjohn767@yahoo.com
Subject: Contact Form Submission
Body:
There has been a submission of the form Contact through your concrete5 website.

Your Name
John

Your Email
bigjohn767@yahoo.com

Phone
706xxxxxxx

Your concerns or Suggestion:
safdsafdsafdsafdsaf


To view all of this form's submissions, visithttp://wrensumc.com/index.php/dashboard/reports/forms/?qsid=1423765...


Any suggestions on what to look for?

johnbryan
 
ASprTrmp replied on at Permalink Reply
ASprTrmp
I had the similar problem and Andrew suggested to check the spam folder. I found the test submissions there. I am using my Gmail address as the site's admin address and I am also using the same address in form's options. Apparently Google marks it as spam.
Pluto replied on at Permalink Reply
Pluto
+1
johnbryan replied on at Permalink Reply
johnbryan
Found a solution. Add this to your Config/site.php file:


define('EMAIL_DEFAULT_FROM_ADDRESS', 'email@email.com');
define('EMAIL_DEFAULT_FROM_NAME', 'Any Name');
define('FORM_BLOCK_SENDER_EMAIL', 'email@email.com');

Replace 'email@email.com' with the email address you use.

This worked on two sites i have....
ASprTrmp replied on at Permalink Reply
ASprTrmp
Thank you. However, that does not work in 5.7 anymore as the configurations are not located in config/site.php and also constant variables are not used anymore.

I found the settings in concrete/config/concrete.php file. Perhaps not the best way to do it (especially when having multiple sites with same core), but it worked in my case. In addition, I added the email address used in c5 to my Gmail's contacts list and now form submissions are sent to my Inbox folder instead of spam.
Uranus replied on at Permalink Reply
Uranus
Please check your spam folder