By default, WordPress uses PHP's mail() function to send emails, which is often blocked or flagged as spam. Configuring SMTP ensures emails from your site - such as contact form submissions, order confirmations, and password resets - are delivered reliably.
In your WordPress admin panel, go to Plugins > Add New, search for WP Mail SMTP, then install and activate it.
From the left-hand menu, go to WP Mail SMTP > Settings.
Set the From Email to the email address you will use for SMTP authentication. Tick Force From Email so that all plugins on your site send from the same address. Set the From Name to whatever you would like to appear as the sender name.
Scroll down and select Other SMTP from the Mailer section.
Scroll down and enter the following settings, using your StackCP email address and password:
| Setting | Value |
|---|---|
| SMTP Host | smtp.stackmail.com |
| SMTP Port | 465 |
| Encryption | SSL/TLS |
| Authentication | On |
| Username | Your full email address |
| Password | Your email account password |
Click Save Settings.
Scroll back to the top of the page and click the Email Test tab.
Enter an email address to send the test to, leave HTML enabled, and click Send Email.
A correctly configured account will show a success message.
If there is an error - for example if the password is incorrect - you will see a failure notification.
Click View Full Error Log for more detail on what went wrong.
Test email fails with an authentication error
Test email succeeds but contact form emails are not arriving
No worries, Our experts are here to help.