How to Configure SMTP Email for WordPress Using cPanel
Using SMTP to send email from WordPress improves deliverability, reliability, and security compared to PHP’s default mail function. This guide walks you through:
-
Choosing and installing a WordPress SMTP plugin
-
Finding your email account’s SMTP settings in cPanel
-
Entering those settings into WordPress
-
Testing email delivery
Part 1: Choose and Install a WordPress SMTP Plugin
Step 1: Log in to WordPress Admin
-
Go to:
https://yourdomain.com/wp-admin -
Log in with an administrator account.
Step 2: Browse Available SMTP Plugins
-
In the left menu, click Plugins → Add New
-
In the search box, type SMTP
Common, well-supported options:
-
WP Mail SMTP (recommended for most users)
-
FluentSMTP
-
Post SMTP Mailer
💡 WP Mail SMTP is beginner-friendly and works well with standard cPanel email accounts.
Step 3: Install and Activate the Plugin
-
Click Install Now
-
Once installed, click Activate
-
A new SMTP / Mail menu will appear in WordPress
Part 2: Find Email Account SMTP Settings in cPanel
You’ll now need the email server details for your domain.
Step 4: Log in to cPanel
-
Usually found at:
https://yourdomain.com:2083 -
Log in using your cPanel username and password.
Step 5: Open Email Accounts
-
In cPanel, go to Email → Email Accounts
-
Locate the email address you want WordPress to send from
-
Click Connect Devices
Step 6: Copy SMTP Configuration Details
You’ll see settings similar to the following:
| Setting | Value |
|---|---|
| SMTP Server | mail.yourdomain.com |
| SMTP Port | 465 (SSL) or 587 (TLS) |
| Encryption | SSL or TLS |
| Username | full email address |
| Password | email account password |
⚠️ Important:
This is the email account password, not your cPanel or WordPress password.
Part 3: Configure the SMTP Plugin in WordPress
Step 7: Open SMTP Plugin Settings
-
In WordPress, go to Settings → WP Mail SMTP (or your chosen plugin)
Step 8: Enter SMTP Details
Fill in the fields using the values from cPanel:
-
From Email:
you@yourdomain.com -
From Name: Your site or company name
-
Mailer: Other SMTP
-
SMTP Host:
mail.yourdomain.com -
Encryption: SSL or TLS
-
SMTP Port: 465 or 587
-
Authentication: Enabled
-
Username: full email address
-
Password: email password
Save settings.
Part 4: Send a Test Email
Step 9: Run the Test Email
-
In the SMTP plugin, open Email Test
-
Enter your own email address
-
Click Send Email
If successful, you’ll receive a confirmation message.
Common Troubleshooting Tips
Email not sending?
-
Double-check the password (most common issue)
-
Make sure the port matches the encryption type:
-
SSL → 465
-
TLS → 587
-
-
Confirm the email account exists in cPanel
-
Ensure your hosting provider allows outbound SMTP
Emails going to spam?
-
Use an address on the same domain as your site
-
Make sure SPF, DKIM, and DMARC are enabled in cPanel
-
Avoid free email providers (Gmail, Yahoo) as SMTP senders
Summary
✔ Install a WordPress SMTP plugin
✔ Retrieve SMTP settings from cPanel
✔ Configure authentication in WordPress
✔ Test email delivery
Using SMTP ensures WordPress emails (forms, password resets, notifications) are delivered consistently and securely.