Question

Email not working

  • Posted August 14, 2013

Hi,

My wordpress sites are working fine, except email is not sent from the Wordpress. Let say i install a contact form plugin.

Suppose i will get email everytime anyone contact me from the site, but i get nothing. Whats wrong?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I install sendmail. <br>Then i try the contact form. Now its worse, the after i click Submit the page keeps loading, until the page is not available.

i did’nt see any errors.but
import smtplib server = smtplib.SMTP(“smtp.gmail.com”,587) is not working

Do you see any errors? <br> <br>Add these lines to wp-config.php: <br> <br><pre>@ini_set(‘log_errors’,‘Off’); <br>@ini_set(‘display_errors’,‘On’); <br>@ini_set(‘error_reporting’, E_ALL ); <br>define(‘WP_DEBUG’, true); <br>define(‘WP_DEBUG_LOG’, false); <br>define(‘WP_DEBUG_DISPLAY’, true);</pre> <br> <br>and try sending an email – it should output the error if any. <br> <br>Make sure you delete the lines you added once you’re done.

<b>“My wordpress sites are working fine, except email is not sent from the Wordpress.”</b> <br> <br>The solution from this thread => <a href=“https://www.digitalocean.com/community/questions/wordpress-email-notifications”>WordPress email notifications</a> worked for me.

Do you have an MTA installed? <pre>sudo apt-get install sendmail</pre>