How do I use Gmail SMTP server to send emails for DSM?

How do I use Gmail SMTP server to send emails for DSM?

Purpose

This article will guide you through how to use Gmail as the service provider to send email notifications in DSM.

Resolution

Set up system notifications

There are two methods to send system notifications via Gmail. We recommend using Method 1 if possible as it is easier to configure.

In the following scenarios, please use Method 2:

  • Send emails using ssmtp binary (e.g., running user-defined scripts in Task Scheduler).
  • Send emails using PHP for websites built in Web Station (incl. emails from third-party software, such as WordPress, MantisBT, etc.).
  • Send notifications when someone leaves a comment on a photo or an article in Photo Station.

Method 1: Use Gmail as your service provider (recommended)

Method 2: Set custom SMTP server to Gmail

Set up personal notifications

There are two methods to send personal notifications via Gmail. We recommend using Method 1 if possible as it is easier to configure.

Method 1: Use Google as your service provider (recommended)

Method 2: Set custom service provider to Gmail

Notes:

  1. Google's security policy: Starting May 30, 2022, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. To bypass this limitation, enable 2-Step Verification and App Password.
Purpose
Contents
Resolution
Set up system notifications
Set up personal notifications