Home>Support>Contact Form Widget – Email not sending. Email sent, but not received.

Contact Form Widget – Email not sending. Email sent, but not received.

Hi,

I have been trying to understand and diagnose an email sending problem with the contact form widget.

Guided by your forum, I installed “WP Mail Logging” plugin to get the report info when emails send, including error messages and content.

First, I received “Could not instantiate mail function” error. I had to follow the phpmailer guidelines and finally discovered my server did not have `sendmail` installed. It turns out Phpmailer is a library wrapper for sendmail. On the linux-based server, I installed it:

sudo apt install sendmail

Next, using ‘Easy WP SMTP’ (phpmailer), I could send test emails via authenticated Gmail SMTP server, and it will appear in the recipient’s inbox. Great.

Next, the Contact Form Widget would send an email, but not be received:
– it successfully showed the “Thanks” page after clicking submit.
– the sent email appeared in the “WP Mail Logging Log” list
– the sent email showed in my Gmail “Sent mail” list.
– but the email did not arrive in the To address’s Gmail inbox.

In this case,
– From was set to: [email protected]
– To was set to: [email protected] Where [email protected] was a catchall address, which forwarded to [email protected]

I discovered that if I use the same From and To addresses (even though the To is a forwarded address), the email was not received. Possibly blocked by Gmail or blocked by Domain host forwarding.

My ongoing problem is now solved.

Hopefully someone in future will benefit from this experience.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 days, 13 hours ago Andrew Misplon Hi, I Work Here

    Hi Lex

    Thanks for taking the time to post your experience and feedback, it’s most appreciated. I’m really glad to hear you’ve made progress. If any SiteOrigin questions arise in the future, please, let us know.

    All the best.

Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More