WordPress needs to send emails for tasks such as password resets, admin notifications, and contact form submissions. By default, WordPress uses the PHP mail() function, but this isn’t always reliable and can sometimes send emails to spam folders. Using SMTP (Simple Mail Transfer Protocol) ensures emails are sent more reliably.
SMTP is a proper email sending protocol, whereas PHP mail() is just a PHP function. Using SMTP:
Makes email delivery more reliable
Reduces the chance of emails going to spam
Uses proper authentication to verify the sender
Log in to your WordPress dashboard.
Go to Plugins → Add New.
Search for the WP Mail SMTP plugin, install it, and activate it.
In your dashboard, navigate to WP Mail SMTP.
Fill in your SMTP details, which can be found in cPanel → Email Accounts → Connect Devices:
Example Settings:
SMTP Host: mail.yourdomain.com (replace yourdomain.com with your actual domain)
SMTP Port: 587
Encryption: TLS
Auto TLS: On
Authentication: On
SMTP Username: Your email address
SMTP Password: Your email account password
Click Save Settings.
Your WordPress site will now send emails using SMTP, improving delivery reliability and speed.
If you use a third-party email provider:
Ask your provider for the SMTP server and login details.
Some services may require an API key or other specific configurations.
You can also create an email account on your hosting server and use your server’s hostname as the SMTP server.
More reliable email delivery
Less chance of emails going to spam
Proper authentication for all outgoing emails
If you face any issues while setting up SMTP, our support team at Cyberin is ready to help you configure it correctly.