By default, WordPress sends emails using PHP’s built-in mail function. Emails sent this way carry no authentication, which means spam filters on the receiving end often block or discard them before they reach the inbox. Switching to SMTP lets your emails leave through an authenticated mailbox, which significantly improves deliverability.
This guide walks you through installing the WP Mail SMTP plugin, connecting it to a cPanel email account and confirming that outgoing mail works correctly.
WP Mail SMTP replaces WordPress’s default PHP mail function with a proper SMTP connection. Installing it from the plugin directory takes only a few clicks and requires no manual file uploads.
WP Mail SMTP into the search box. The plugin by WPForms should appear at or near the top of the results.
With the plugin active, you can now configure it to send mail through your cPanel SMTP account.
The plugin needs your SMTP server details so it knows where to route outgoing mail. These settings tell WordPress which server to connect to, which port to use and how to authenticate.
mail.yourdomain.co.uk (replace with your actual domain or your server hostname)TLS587hello@yourdomain.co.uk
Your SMTP credentials are now saved. The next step is to confirm the connection is working before your site starts sending real emails through it.
Sending a test email confirms that WordPress can connect to your SMTP server and authenticate successfully. Do this before relying on the configuration for contact forms or transactional emails.

A successful test means your WordPress site is now routing all outgoing mail through authenticated SMTP.
A connection error usually means the plugin cannot reach your SMTP server. This is most often caused by an incorrect hostname, the wrong port number or a firewall blocking outbound connections on port 587.
mail.yourdomain.co.uk.587 with TLS encryption, or port 465 with SSL encryption.If the test email is delivered but lands in spam, the issue is likely missing or misconfigured DNS authentication records rather than the SMTP connection itself.
Some mail servers reject messages where the From address differs from the authenticated sending account. This prevents spoofing but can catch misconfigured plugins.
Your WordPress site now sends all outgoing mail through an authenticated SMTP connection using your cPanel mailbox. This applies to contact form submissions, password reset emails and any other notifications your site generates.
If you are still seeing delivery issues, review your DNS authentication records and check the email blocked for spam guide. For contact form-specific problems, see our guide on fixing WordPress contact form issues. Bear in mind that cPanel mailboxes are not intended for bulk or mass mailing – for mailing list campaigns, use a dedicated email marketing platform instead.
Our WordPress hosting plans include cPanel email accounts ready to use as your SMTP sending address.
Get fast, secure and reliable WordPress Hosting with optimised for performance with AccelerateWP.
Get WordPress HostingCreate fully isolated individual accounts for your clients and manage them all from one dashboard.
Get Reseller Hosting