In order to send emails through your own servers, you will first need to connect your site to your SMTP server or Sparkpost account.
Sparkpost
To use Sparkpost authentication you need:
- Enter your domain name
- Add the specified Hostname and Value on your domain name registrar’s DNS settings
- Follow the Preparing your “From:” Address steps as per Sparkpost
- Verify your domain ownership by adding a DNS record and complete verification
SMTP
Connecting Gmail
Make sure the settings are set up as follows:
Note: First three steps are done in the Google Account
- Ensure that IMAP support is enabled
- Ensure that the “less secure apps” feature is set to allow > visit the page here: https://myaccount.google.com/lesssecureapps
- Monitor activity on the account during the test sending to ensure that authentication was not being blocked
The next steps are to be filled in the app:
- Address - smtp.gmail.com
- Email - your custom domain
- Port - 587
- Authentication - plain
- Enable SSL - true
- Password - generated through your Google Account > visit the page here: https://myaccount.google.com/apppasswords
Screen recording of the in-app process:
Connecting Microsoft Exchange
Microsoft Exchange Settings:
- Log in to Microsoft exchange (https://portal.office.com/AdminPortal/#/users)
- Choose the user's email
- In the slide-out, go to the Mail tab.
- Then, click the Manage email apps option. - https://i.imgur.com/G332KlN.png
- Check the box for Authenticated SMTP in the list of options.
- Then, click the Save changes button at the bottom. And that’s it! https://i.imgur.com/yKV1sZG.png
In-app settings:
- Address - smtp.office365.com
- Email - your custom domain
- Port - 587
- Enable SSL - true
- Authentication - login