How to Set Up SMTP in WordPress So Emails Actually Arrive
Send WordPress email through a real mailbox or email service with authentication, instead of the unreliable default mail function.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
By default, WordPress asks the web server to send mail, which often fails or lands in spam. SMTP sends mail through a proper mailbox or mail service with a login.
What you need
- A mailbox on your own domain, such as
hello@yourdomain.com, and its password. - Your host's SMTP server name, port and security type. See our IMAP and SMTP guide.
Steps
- Install a well-reviewed SMTP plugin from the official directory.
- Enter the SMTP host, the port (465 with SSL or 587 with TLS) and turn authentication on.
- Use the full mailbox address as the user name and the mailbox password.
- Set the From email to that same mailbox address, and a clear From name.
- Send the plugin's test email to an address you can check.
Make it deliver
Set up SPF, DKIM and DMARC for the domain. See our spam guide.
If the test fails
The plugin's error text points to the cause. Typical ones: a wrong password, wrong port or security type, or the host blocking outgoing connections. See our WordPress email guide.
Volume
Shared mailboxes have hourly sending limits. For larger volumes, use a dedicated transactional email service.
Related guides
- WooCommerce Password Reset Emails Not Arriving
- WooCommerce Order Emails Not Sending or Going to Spam
- WooCommerce Admin New Order Email or Notification Not Arriving
- Outlook 'Cannot Send Message' on Mobile Hotspot or Public Wi-Fi: Port Blocks
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.