Why does my form not send email?

Why My Contact Form Does Not Send Email

 

If your website contact form submissions are not arriving in your inbox, there are several common causes to check.

 

1. Check Your Spam Folder

Form emails frequently land in spam, especially if SPF and DKIM records are not properly configured. Check your spam/junk folder first.

 

2. Use a Valid "From" Address

Your form should send email from an address that exists on your domain (like noreply@yourdomain.com), not from the visitor's email address. If the "from" address does not match your domain, spam filters will reject it. Set the visitor's email as the Reply-To header instead.

 

3. PHP mail() May Be Limited

PHP's built-in mail() function works but has deliverability limitations. For better results, use SMTP authentication in your form. WordPress plugins like WP Mail SMTP let you send form emails through your actual email account, which passes SPF/DKIM checks and avoids spam filters.

 

4. Check Email Routing

If you use a third-party email service (like Google Workspace) but your email routing in cPanel is set to "Local," the form email will be delivered to the local server mailbox instead of your external provider. Go to cPanel > Email Routing and set it to "Remote" if your MX records point to an external email provider.

 

5. Check error_log

Look at the error_log file in your public_html folder for any PHP errors related to the mail function. Common issues include incorrect file permissions on the form script or missing PHP extensions.

  • 625 Users Found This Useful

Was this answer helpful?

Related Articles

Outlook: Error Message: A Connection Failure Has Occurred (Error -23012)

When you try to send and receive messages by using Outlook Express, you are able to send...

How do I block emails containing zip attachments

Blocking Emails With ZIP Attachments   ZIP file attachments are one of the most common...

How to Set Up Email on Android

Adding Your Hosting Email to an Android Phone or Tablet   You can use either the built-in...

Why aren't my sent emails showing up in my sent folder?

Sent Emails Not Appearing in Your Sent Folder   If emails you send from your phone, tablet,...

Emails Bouncing Back

Why Are My Emails Bouncing Back?   Email bounces happen when a message cannot be delivered...



Save 30% on web hosting - Use coupon code Hosting30