![]() No need to change Your old code for sending emails etc. This module will overwrite default Drupal functionality so You don't have to bother to change anything else. After that You can start sending emails from Drupal using Amazon SES, using forms etc. If the setting doesn't work You will have a debugging messages with information what was wrong.īasically that's it. Enable debugging - use it only for test, disable on production enviroment.E-mail address to send a test e-mail to - You can test if SMTP is working.E-mail from address - email that You verified.Password - password for this user (not authentication keys!).Username - created username on Amazon SES.SMTP port - 25, 465 or 587 (also listed on SMTP settings page).SMTP server - get the information from SMTP settings page on Amazon.Go to configuration page (Menu Toolbar -> Configuration -> System -> SMTP Authentication Support). It's really nice, easy to implement module for SMTP also with support for Drupal 8. In our example we will use SMTP Authentication Support module. First, we need a module that can change Drupal's native mail() function to SMTP protocol. We need to configure Drupal for Amazon SES. Setup Your Drupal installation for Amazon SES You can read more about this process here. If You want to authenticate whole domain You need to setup DKIM. After activation You should see the status verified. You will receive email with activation link. If You want to authorize specific email (we will use this option) click Verify a new Email Address. Type Your email and click Verify this Email Address. You can authorize specific emails or whole domain. In order to be able to set From: field we need to authorize the email. There is one more thing we need to care about. ![]() We already have the user credentials for connecting with SMTP server in Drupal. That's the one You'll be using in Drupal. Pick one of the option and remember the password. You can choose between password generated by IAM or Your own. Under Security credentials there are Sign-In credentials. Go to IAM user page and click on Your created user. But keep in mind that there are not the credentials that You'll be using in Drupal!Īfter new user is created we need to setup his credentials for Drupal purposes. After that You can download the credentials. You can leave the default name or provide Your own. It will take us to IAM page where You can create new user account. Click on "Create My SMTP Credentials button". The only thing that we don't have are SMTP credentials - username and password. Go to SMTP Settings. Under this page You will have access to data that are required for SMTP access (Server name, port) On the left side of Dashboard page you should see sidebar menu. SES has some limits and You can check them on this page as well. This is simple dashboard that shows the statistics for Your SMTP server. If You don't have one, you need to sign up in order to use Amazon services first.Īfter You log in go and visit this page. I assume that You already have Amazon account for purpose of this tutorial. ![]() Here is the short info how we manage to run and configure it. As we already used Amazon we wanted to try SES. We wanted to change default mail() method in Drupal to SMTP server. We set up our Drupal installation on Amazon EC2 server. Today I would like to write a bit on configuring SMTP Amazon SES with Drupal.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |