Knowledgebase

Fixing WordPress Not Sending Email (SMTP Setup) Print

  • wordpress, email, smtp, troubleshooting, password, cpanel, spam, spf, dkim, plugins
  • 0

By default WordPress sends mail with PHP's mail() function. Messages sent that way are frequently rejected or filed as spam by Gmail, Yahoo and Outlook because they fail SPF and DKIM checks. The fix is to send through an authenticated mailbox using SMTP.

1. Create the mailbox in cPanel

  1. Open Email Accounts in cPanel and click Create.
  2. Make an address such as [email protected] with a strong password.
  3. After creating it, click Connect Devices to view the exact mail server settings for your account.

2. Install an SMTP plugin

Install and activate WP Mail SMTP (or FluentSMTP). In its setup wizard choose Other SMTP.

3. Enter the settings

  • From Email: [email protected] — this must match the mailbox you created
  • From Name: your business name
  • SMTP Host: mail.yourdomain.com
  • Encryption: SSL with Port 465, or TLS with Port 587
  • Authentication: On
  • Username: the full email address
  • Password: the mailbox password

Save, then use the plugin's Email Test tab to send a test message.

If the test fails

  • Connection timed out — try the alternative port (587 instead of 465). If both fail, try localhost as the host.
  • Authentication failed — the password is wrong, or you entered only the part before the @ instead of the full address.
  • Sends but lands in spam — make sure the From address is on your own domain, not a Gmail or Yahoo address, and ask support to confirm your SPF and DKIM records are in place.

High volume senders

If you send newsletters or hundreds of transactional emails a day, use a dedicated provider such as SendGrid, Brevo or Mailgun rather than your hosting mailbox. Shared hosting has hourly sending limits.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot