How to Send Emails from WordPress Using SMTP
On this page
- Contents
- Installing the WP Mail SMTP Plugin
- Initial Configuration
- Select a Mailer
- Enter SMTP Settings
- Additional Settings
- Sending a Test Email
- SMTP Configuration Settings Explained
- From Email
- Force From Email
- From Name
- Mailer
- SMTP Host
- Encryption
- SMTP Port
- Authentication
- SMTP Username
- SMTP Password
- Why Use SMTP Instead of PHP Mail?
- Summary
By default, WordPress sends emails using PHP’s mail() function. This method is sufficient in many cases, but some email providers may reject messages sent this way due to increasingly strict anti-spam and email authentication policies.
A more reliable solution is to configure WordPress to send emails via SMTP. This works similarly to an email client, where messages are sent through an authenticated mailbox using a username and password. As a result, email delivery is generally more reliable and less likely to be flagged as spam.
In this guide, we’ll use the WP Mail SMTP plugin.
Contents
- Installing the WP Mail SMTP Plugin
- Initial Configuration
- Sending a Test Email
- SMTP Configuration Settings
Installing the WP Mail SMTP Plugin
Log in to your WordPress administration panel and navigate to:
Plugins → Add New
In the search field, enter:
WP Mail SMTP
When the plugin appears in the search results:
- Click Install Now
- Wait for the installation to complete
- Click Activate
After activation, the setup wizard will launch automatically.
You can also access the plugin settings later via:
WP Mail SMTP → Settings
Initial Configuration
When the setup wizard appears, click:
Let’s Get Started
Select a Mailer
Choose:
Other SMTP
Then click:
Save and Continue
Enter SMTP Settings
Fill in the following values:
| Setting | Value |
|---|---|
| SMTP Host | smtp.mybox.com |
| Encryption | TLS |
| SMTP Port | 587 |
| Authentication | Enabled |
| SMTP Username | Your full email address |
| SMTP Password | Your mailbox password |
Example:
SMTP Host: smtp.mybox.com
Encryption: TLS
Port: 587
Click:
Save and Continue
Additional Settings
The next wizard steps contain optional settings.
In most cases, you can leave the default values unchanged and continue through the wizard until setup is complete.
If prompted about:
- Usage tracking
- Plugin improvements
- WP Mail SMTP Pro
you can safely skip these steps.
Once finished, click:
Finish Setup
Sending a Test Email
To verify that SMTP is working correctly:
- Open: WP Mail SMTP → Tools → Email Test
- Enter the email address that should receive the test message.
- Click: Send Email
If the configuration is correct, you should see a success message confirming that the email was sent.
You should also receive the message in the destination mailbox shortly afterward.
SMTP Configuration Settings Explained
From Email
Enter the email address that will be used to send messages.
Example:
contact@yourdomain.com
Force From Email
Enable this option to ensure all WordPress emails use the configured sender address.
From Name
Specify the name that recipients will see.
Examples:
My Website
Support Team
Your Company Name
Mailer
Select:
Other SMTP
SMTP Host
For mybox mailboxes, use:
smtp.mybox.com
Encryption
Select:
TLS
SMTP Port
For TLS encryption, use:
587
Authentication
Enable SMTP authentication.
This ensures messages are properly authorized before being sent.
SMTP Username
Enter the full mailbox address.
Example:
contact@yourdomain.com
SMTP Password
Enter the password associated with the mailbox.
After completing the configuration, click:
Save Settings
Why Use SMTP Instead of PHP Mail?
Using SMTP provides several advantages:
- Better email deliverability
- Reduced risk of messages being marked as spam
- Proper authentication through your mailbox
- Improved compatibility with modern email providers
- Easier troubleshooting through SMTP logs
Summary
To improve email delivery from WordPress, install the WP Mail SMTP plugin and configure it to use SMTP authentication. For mybox mailboxes, use the following settings:
SMTP Host: smtp.mybox.com
Encryption: TLS
Port: 587
Authentication: Enabled
Username: your-email-address
Password: your-mailbox-password
Once configured, send a test email to verify that WordPress can successfully send messages through your mailbox.
Didn't find an answer?
Our support team is here for you 24/7 – write to us and we will help you sort it out.