Prerequisites
- Admin access to the Magento admin panel
- Your mySMTP credentials (see Setting up SMTP credentials)
- A verified sending domain
SMTP settings
Shared IP plans are only available to customers in Denmark.
Native SMTP configuration (Magento 2.4.7+)
1
Open Mail Sending Settings
Log in to the Magento admin panel. Go to Stores → Configuration → Advanced → System.
2
Expand Mail Sending Settings
Scroll to Mail Sending Settings. Open the section and set Transport to SMTP.
3
Enter mySMTP host and port
Fill in the fields:
- SMTP Host: your real mySMTP hostname (from your setup email)
- SMTP Port:
587
4
Enable authentication
Set Authentication to Login and enter:
- Username: your mySMTP username
- Password: your mySMTP password
5
Save and flush cache
Click Save Config in the top right. Then go to System → Cache Management and click Flush Magento Cache.
For versions older than 2.4.7
Magento versions before 2.4.7 do not include a built-in SMTP transport. Install a well-maintained third-party SMTP extension from the Magento Marketplace, then enter the same host, port, username, and password shown in the table above. Always choose an extension from a reputable vendor and keep it updated.Set store email addresses
Make sure the addresses Magento uses as senders are on your authenticated domain.1
Open Store Email Addresses
In the Magento admin panel, go to Stores → Configuration → General → Store Email Addresses.
2
Set sender addresses
Update the addresses for General Contact, Sales Representative, Customer Support, and Custom Email 1/2 to use your verified domain (for example,
sales@yourdomain.com and support@yourdomain.com).3
Save changes
Click Save Config.
Send a test email
Go to Stores → Configuration → Advanced → System → Mail Sending Settings (or your third-party SMTP extension test page) and send a test email to an address you control. Confirm it arrives and shows the correct sender domain.Troubleshooting
SMTP option is missing
SMTP option is missing
This means your Magento version is older than 2.4.7. Use a reputable third-party SMTP extension instead.
Connection test fails
Connection test fails
Double-check your real mySMTP hostname, port 587, and TLS selection. If your server firewall blocks 587, try port 2525.
Emails go to spam
Emails go to spam
Verify SPF, DKIM, and DMARC records are set up correctly. See DNS settings quick explainer and SPF, DKIM, DMARC, and BIMI explained.
Sender address mismatch
Sender address mismatch
Confirm that the address under Store Email Addresses matches the authenticated domain in mySMTP. Mismatched domains hurt deliverability.
.png?fit=max&auto=format&n=-Uw4rR8wfyv_xkzc&q=85&s=898bb0b43b6c9dce61441f46ac9ac860)