How to Set Up SMTP in WordPress: The Complete 2026 Guide
If you are running a WordPress site, chances are your emails are not reaching inboxes reliably. The default WordPress mail function (wp_mail) uses PHP’s built-in mail function, which most hosting providers either limit or disable entirely.
What Is SMTP and Why Do You Need It?
SMTP (Simple Mail Transfer Protocol) is the standard method for sending email across the internet. When you configure SMTP in WordPress, your site sends emails through a proper mail server — the same way Gmail, Outlook, and every other email service works.
The result: better deliverability, fewer emails landing in spam, and detailed sending logs so you know exactly what happened with each message.
Step 1: Choose Your SMTP Provider
Popular options include Gmail/Google Workspace, SendGrid, Mailgun, Amazon SES, and Brevo (formerly Sendinblue). For most WordPress sites sending under 300 emails per day, Gmail or Brevo’s free tier works perfectly.
Step 2: Get Your SMTP Credentials
You will need four things from your provider: the SMTP host (like smtp.gmail.com), port number (usually 587 for TLS), your username (typically your email address), and your password or app-specific password.
Step 3: Configure in MailPhoton
Navigate to MailPhoton → SMTP Settings in your WordPress admin. Enter your credentials, choose TLS or SSL encryption, and hit “Save.” MailPhoton validates your settings immediately and tells you if something is wrong.
Step 4: Send a Test Email
Always send a test email after configuration. MailPhoton includes a one-click test button that sends a message to your admin email. Check that it arrives in your inbox (not spam), and verify the “from” address looks correct.
Step 5: Monitor Your Sending
MailPhoton Pro users get access to email logs — a record of every email sent from your site, including status (delivered, failed, pending). This is invaluable for debugging issues with contact forms, WooCommerce order emails, or any other WordPress email.
Common Issues and Fixes
If emails still go to spam after configuring SMTP, check your domain’s SPF and DKIM records. These DNS records tell receiving mail servers that your SMTP provider is authorized to send on your behalf. Most providers give you the exact records to add.
If connection times out, your hosting provider may be blocking the SMTP port. Try port 465 with SSL instead of 587 with TLS, or contact your host to whitelist the connection.