Sending WordPress email via SMTP
By default WordPress sends email with PHP mail. Such emails often land in spam or are rejected by Gmail. Sending through SMTP of a mailbox on your domain fixes it: the email is DKIM-signed and passes SPF.
You need a mail domain and a mailbox on the site domain, such as info@example.com: mail domain, mailbox.
1. Install the plugin
- WordPress admin: "Plugins" → "Add Plugin".
- Search for
WP Mail SMTP. - Click "Install Now", then "Activate".


2. Sender
- Open "WP Mail SMTP" → "Settings".
- "From Email": your mailbox address, such as
info@example.com. - Enable "Force From Email" so that all plugins send from this address.
- "From Name": the site name.
- "Mailer": "Other SMTP".

3. SMTP server
| Field | Value |
|---|---|
| SMTP Host | mail.example.com |
| Encryption | SSL |
| SMTP Port | 465 |
| Authentication | ON |
| SMTP Username | the full mailbox address |
| SMTP Password | the mailbox password |
- Fill in the fields as in the table.
- Click "Save Settings".

4. Test
- "WP Mail SMTP" → "Tools" → "Email Test".
- "Send To": your address on another service, such as Gmail.
- Click "Send Email".


The email should arrive in the inbox. If it is in spam or missing, check SPF and DKIM: SPF, DKIM and DMARC.
Do not send site emails through a personal Gmail. The sender address must be on the site domain, otherwise mail services reject the emails.