Skip to content

Instantly share code, notes, and snippets.

@rpayanm
Created July 12, 2019 20:23
Show Gist options
  • Save rpayanm/1c30fc8f54146b4975942575e7f637e9 to your computer and use it in GitHub Desktop.
Save rpayanm/1c30fc8f54146b4975942575e7f637e9 to your computer and use it in GitHub Desktop.

http://www.stevepolitodesign.com/blog/drupal-configure-smtp-module-work-gmail-updated

Install and Configure SMTP Module

  1. Install the SMTP Authentication Support module in the usual way.

  2. Navigate to the configuration page admin/config/system/smtp

  3. Under Turn this module on or off select On. You can leave Send mail by queue and Retry sending mail on error deselected by default, but selecting them won't affect Gmail.

  4. Under SMTP server enter the following smtp.gmail.com. Leave SMTP backup server blank

  5. Under SMTP port enter 587

  6. Under Use encrypted protocol select Use TLS

  7. Under SMTP AUTHENTICATION enter a Gmail address and password.

  8. Under E-MAIL OPTIONS use the same Gmail address as you did above and enter an E-mail from name

  9. Click Save

Update Gmail Account Settings

  1. Login to your Gmail account at https://myaccount.google.com/

  2. On the account homepage, click Sign-in & security or navigate to https://myaccount.google.com/security

  3. Scroll down to the Allow less secure apps: widget, and have it enabled.

  4. Now navigate to https://accounts.google.com/DisplayUnlockCaptcha and click Continue

  5. Go back to the SMTP configuration page at admin/config/system/smtp

  6. Enter an email address you would like to receive a test message from and click Save configuration

  7. Check your inbox to confirm you received the test message.

https://accounts.google.com/DisplayUnlockCaptcha https://www.google.com/accounts/DisplayUnlockCaptcha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment