Line 101:
Line 101:
*Port: 465
*Port: 465
*SMTP Username: Your Gmail login (xxx@gmail.com or xxx@yourdomain.com)
*SMTP Username: Your Gmail login (xxx@gmail.com or xxx@yourdomain.com)
−
*SMTP Password: A generated application password (not your GMail password, see later)
+
*SMTP Password: A generated application password (NOT your GMail password, see later)
*Use TLS (SSL) encrypt: yes
*Use TLS (SSL) encrypt: yes
*Use TLS (STARTTLS) encrypt: no
*Use TLS (STARTTLS) encrypt: no
Line 114:
Line 114:
Note: With this mode, all sent emails are automatically added into "Sent" folder of the '''main account'''. If your are a Gsuite user with several users/mailboxes, prefer to use the next method.
Note: With this mode, all sent emails are automatically added into "Sent" folder of the '''main account'''. If your are a Gsuite user with several users/mailboxes, prefer to use the next method.
+
+
+
===Gmail (with OAuth2)===
+
+
Enable the module OAuth2.
+
Into OAUTH2 module setup, create an OAuth2 entry for Microsoft provider with the 3 scopes:
+
* gmail_full
+
Go on the Tab Token Management to generate a token for this OAUth2 service.
+
+
Now, into the Home - Setup - Email must be
+
*Email sending method: SMTPs
+
*Server: smtp.gmail.com
+
*User name: Your Gmail login (xxx@gmail.com or xxx@yourdomain.com)
+
*Authentication method: OAUTH2
+
*OAUTH2 authentication service: Choose the entry created in OAUth2 setup
+
*Port: 587
+
*Use TLS (SSL) encrypt: no
+
*Use TLS (STARTTLS) encrypt: yes
===Gmail (with mode relay of Gmail with Google Workspace - GSuite)===
===Gmail (with mode relay of Gmail with Google Workspace - GSuite)===