How to Set Up WordPress to Send Emails Using SMTP

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.

Why Use SMTP Instead of PHP Mail?

SMTP is a proper email sending protocol, whereas PHP mail() is just a PHP function. Using SMTP:

How to Set Up SMTP in WordPress

  1. Log in to your WordPress dashboard.

  2. Go to Plugins → Add New.

  3. Search for the WP Mail SMTP plugin, install it, and activate it.

  4. In your dashboard, navigate to WP Mail SMTP.

  5. Fill in your SMTP details, which can be found in cPanel → Email Accounts → Connect Devices:

    Example Settings:

  6. Click Save Settings.

Your WordPress site will now send emails using SMTP, improving delivery reliability and speed.

Using an External Email Service

If you use a third-party email provider:

You can also create an email account on your hosting server and use your server’s hostname as the SMTP server.

Advantages of Using SMTP

If you face any issues while setting up SMTP, our support team at Cyberin is ready to help you configure it correctly.