Home › Knowledgebase › KB-1143

Why Your Website Contact Form Isn't Sending Emails After a Hosting Change

Summary

This guide helps you troubleshoot and resolve: Why Your Website Contact Form Isn't Sending Emails After a Hosting Change. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

Why Your Website Contact Form Isn't Sending Emails After a Hosting Change

After migrating your website to a new hosting provider, your contact form may stop sending emails. This is a common issue caused by SMTP restrictions, missing email authentication records, or incorrect routing between your web server and your business email suite. This guide explains how to diagnose and resolve these delivery failures so your Australian small business can continue receiving customer inquiries without interruption.

Warning: Before making any changes to your DNS records, create a backup of your current zone file. Incorrect DNS changes can disrupt your website and email services.

Quick Fix Steps

  1. Update your contact form plugin to the latest version to ensure compatibility with your new hosting environment.
  2. Test your contact form using a different email address and device to confirm whether the issue affects all recipients or only your business email.
  3. Check your website's contact form plugin settings and ensure the From email address matches your domain.
  4. Verify that your domain's DNS records, including SPF, DKIM, and DMARC, are correctly configured for your new hosting provider.
  5. Check your new hosting provider's sending limits or quotas to ensure you have not exceeded your daily email allowance.
  6. Confirm that your hosting provider does not block outbound ports 25 or 587, which are required for SMTP communication.

Detailed Instructions

1. Check Plugin Compatibility and Updates

Before troubleshooting delivery, verify that your contact form plugin is compatible with your new hosting environment and is running the latest version.

  1. Log in to your WordPress administration dashboard.
  2. Navigate to Plugins > Installed Plugins.
  3. Locate your contact form plugin (e.g., WPForms, Contact Form 7, or Elementor Forms).
  4. If an update is available, click Update Now.
  5. Review the plugin documentation to confirm it supports the PHP version and server configuration of your new host.

2. Configure Contact Form Sender Settings

Many hosting providers block emails sent from addresses that do not belong to the server's domain. To prevent this, configure your contact form to use an email address hosted on your own domain.

WPForms

  1. Navigate to WPForms > All Forms.
  2. Edit your contact form.
  3. Click the Settings tab, then select Notifications.
  4. Update the From Email field to an address using your domain, such as info@yourdomain.com.au.
  5. Click Save.

Contact Form 7

  1. Navigate to Contact > Contact Forms.
  2. Edit your contact form.
  3. Locate the Mail tab.
  4. Update the From field to info@yourdomain.com.au.
  5. Click Save.

Elementor Forms

  1. Edit the page containing your form using Elementor.
  2. Select the Form widget.
  3. Navigate to the Actions After Submit tab.
  4. Click the Email action.
  5. Update the To Email and From Email fields.
  6. Click Update.

Avoid using a generic @gmail.com or @outlook.com address as the sender, as this often triggers spam filters and authentication failures.

3. Verify DNS Authentication Records

After a hosting change, your domain's DNS records may no longer authorise the new server to send email on your behalf. This can cause recipient mail servers to reject your messages.

  1. Log in to your domain registrar or DNS management console.
  2. Locate the DNS zone for your domain.
  3. Confirm that an SPF record exists and includes your new web host's mail servers.
  4. Ensure DKIM records are published if your email suite supports them.
  5. Check that DMARC is configured to handle authentication failures appropriately.
  6. Confirm your MX records point to the correct email provider, especially if your website and email are hosted separately.
  7. Allow up to 48 hours for DNS changes to propagate across Australian and global networks.
Note: Be aware of potential email delivery delays or greylisting after DNS changes. Some recipient mail servers may temporarily greylist new sending servers, causing intermittent delivery for 24 to 48 hours.

4. Test Email Delivery and Diagnostics

Use the following steps to determine if the issue is with the form plugin, the server, or the email provider.

  1. Test with PHP mail(): Create a simple PHP file on your server containing the mail() function to see if the server can send email at all without a plugin.
  2. Install WP Mail SMTP: Install and activate the WP Mail SMTP plugin. Use its Email Test feature to send a test email via SMTP and identify configuration errors.
  3. Check Server Mail Logs: Access your hosting control panel (e.g., cPanel) and navigate to Email > Track Delivery or Mail Logs to look for connection errors or authentication rejections.
  4. Check SMTP Configuration: Verify your SMTP host, port (usually 587), username, and password in your plugin settings.
  5. Test Different Clients: Check the destination inbox using a different email client or device to rule out local caching or client-specific filtering.

5. Third-Party and Custom-Coded Forms

If you are not using a WordPress plugin, the troubleshooting steps differ.

Third-Party Services (e.g., Formspree, Netlify Forms)

  1. Log in to your third-party form service dashboard.
  2. Verify that your email address is still listed as the notification recipient.
  3. Check the service's dashboard for failed submission logs or error messages.
  4. Ensure your domain is verified with the service if you recently changed hosting.

Custom-Coded Forms

  1. Review your form's server-side script (e.g., PHP, Node.js) to ensure the mail() or SMTP library is configured for the new host.
  2. Verify that the sender email address in the code matches your domain.
  3. Check server error logs for script execution failures.

Troubleshooting

Emails Arrive but Are Marked as Spam

No Emails Are Received at All

Intermittent Delivery Failures

If you have completed these steps and your contact form still is not sending emails, Open a Ticket with 220 Internet Services. Include your domain name, the email address used by the contact form, and any error messages you have received.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket