A Drupal application may need to send email for several purposes, such as password resets, user registrations, or other notifications. Using the SMTP module, you can set up any non Acquia mail infrastructure, such as SendGrid, Mailchimp, or your own mail infrastructure etc.
Configuring the SMTP module
To configure the SMTP module:
Sign in to your Drupal application as an administrator and go to the Admin > Configuration page for the SMTP module.
- In Install Options, select On to turn the module on.
- In SMTP Server Settings, specify the SMTP server and SMTP port.
- In SMTP Authentication, enter the following:
- Username: Your mail infrastructure username
- Password: Your mail infrastructure password
- In Email options, enter a valid from address and a name for the sender of the email (such as your name or your site’s name).
- Click Save configuration.
You can also use encryption with your connection. Instead of the previous values, use the following values in the appropriate places:
- Set the SMTP port to
587
- Set Use encrypted protocol to
Use TLS
.
Your Drupal application can now send email through your mail infrastructure.
Many other third party mailing services are available. As always, it is important to do your research and select the one that best integrates with your service needs.