Real people, 24/7(800) 395-7779

How to Set Up SMTP Authentication for WordPress Print

  • smtp, smtp authentication, wordpress smtp
  • 0

On our shared Linux servers, PHP's mail() function is disabled for websites. This stops a hacked site from silently sending spam. To send WordPress emails (contact forms, order emails, password resets), set up an SMTP plugin that logs in to a real mailbox, just like an email program does.

Step-by-Step Guide:

  1. Create a mailbox for your site:

  2. Install an SMTP plugin:

    • In WordPress, go to Plugins > Add New Plugin and install a well-maintained SMTP plugin, such as WP Mail SMTP or FluentSMTP. Activate it.
  3. Choose "Other SMTP":

    • In the plugin's settings, select the generic Other SMTP mailer.
  4. Enter the settings:

    • SMTP host: mail.yourdomain.com (or your server's hostname from your Welcome email)
    • Encryption / port: SSL on port 465, or TLS on port 587
    • Authentication: on
    • Username: the full email address (for example noreply@yourdomain.com)
    • Password: that mailbox's password
    • From Email: the same address; turn on Force From Email so other plugins use it too
  5. Send a test:

    • Use the plugin's Email Test tab to send a message to an outside address (for example, your Gmail), and check that it arrives.

Good to Know:

  • If your domain's email is hosted elsewhere (for example Google Workspace or Microsoft 365), use that provider's SMTP settings or its plugin integration instead.
  • Website mail counts toward your domain's hourly outbound email limit. Contact forms that get spammed can hit the limit, so add a CAPTCHA or honeypot to your forms. See Outbound Email Limits.
  • Set up SPF and DKIM for your domain to keep website mail out of spam folders (cPanel > Email > Email Deliverability).

Troubleshooting:

  • Authentication failed: Use the full email address as the username, and re-type the password.
  • Connection timed out or certificate error: Try the server hostname instead of mail.yourdomain.com, or switch between port 465/SSL and 587/TLS.
  • Test arrives but form emails do not: Check the form plugin's own "From" setting and make sure it uses an address on your domain.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back