Spring into Summer Sale! Save 15%
on any Shared Hosting Plan & Location.
 Code: SUMMER15

How to Configure SMTP in Drupal 8

Step by Step tutorial on configuring the Simple Mail Transfer Protocol module in Drupal 8

Configuring your Drupal 8 mail service via SMTP can improve user experience as the emails send from your website (verification emails, newsletters, etc.) will certainly be delivered and not marked as spam.

 

Step 1 Create an Email Account

To create a new email account, you will need to navigate to cPanel>Email Accounts.

 

Accessing the Email Accounts section of cPanel

 

Enter the following information:

 

Creating a new Email Account

 

  • Email - The name for your new email address
  • Password – The password for your new email account

 

Step 2 Download and Install the SMTP module

The most used SMTP module for Drupal can be found here. At the time of writing this tutorial, the 8.x version is still not fully adopted and thus is not listed under the Recommended releases section.

 

Downloading version 8 of the SMTP module

 

Click on the .tar.gz or .zip download links to download the package or just copy the link from the newly opened window (ex. http://ftp.drupal.org/files/projects/smtp-8.x-1.x-dev.zip)

 

Now login to your Drupal 8’s admin account and access the Manage>Extend section.

 

Accessing the Extend menu in Drupal 8

 

Click on the Install new module button.

 

Installing a new module in Drupal 8

 

Here you will be able to either use the URL you have copied to the module or upload the archive file itself from your local computer.

 

Installing the new module

 

Step 3 Configure the SMTP module

Now return to the Extend menu, find the SMTP Authentication Support module located in the MAIL section and click on the Configure option.

 

Configuring the SMTP module

 

The first option will be to enable the module. Click the On radio button to turn the module on.

 

Turning ></p>

<p> </p>

<p>Next are the <strong>SMTP Server Settings</strong>:</p>

<ul>
	<li><strong>SMTP server –</strong> The address for your outgoing SMTP server which is mail.emailaddress</li>
	<li><strong>SMTP backup server –</strong> If you have a second SMTP server for this email, fill this field</li>
	<li><strong>SMTP port –</strong> The port on which the SMTP service will be established. Use <strong>25</strong> or <strong>2525 </strong>for non encrypted and <strong>465</strong> for encrypted connection.</li>
	<li><strong>Use encrypted protocol –</strong> If you want to use SSL encryption set this to yes and use the appropriate port specified above</li>
</ul>

<p> </p>

<p><img alt=

 

For the SMTP Authentication fields, use your email address username and password.

 

Filling the SMTP Authentication fields

 

In the E-mail Options field you will be able to configure the “From” field of your email and the email address that will be shown to the recipient. You can also enable HTML formatting in emails.

 

Configuring the E-mail options in Drupal 8

 

The last field is for testing purposes. If you wish to send yourself a test email, type here the email on which you want to receive it. Check the Enable debugging option to see any possible issues with the emails you send.

 

Sending a test email and completing the setup of SMTP

 

Click on the Save configuration button to save and apply the changes you just did.

 

Congratulations, you can now send emails from your Drupal 8 based website without worrying they will not be received.

Drupal 8 Hosting

  • Free Drupal 8 Installation
  • 24/7 Drupal 8 Support
  • Free Domain for life
  • Hack-free Protection
  • Fast SSD Storage
  • Free Drupal Transfer
  • Free CloudFlare CDN
  • Immediate Activation
View More

45 day money back
no contract