Sending emails with Gmail SMTP servers

Two ways of authenticating

Gmail’s SMTP servers support two ways of authenticating.

1. The classical user/password authentication

Currently, Semarchy xDI’s SMTP metadata supports the classical user/password authentication.

Allowing "less secure apps" in the Google account

By default, a Google account allows only Google apps to connect to their services with username/password.

In order to use third party Email clients with username/password, the Google account owner has to enable the "Allow less secure apps" setting.

xDI is - in a way - a third party Email client, so this requirement applies.

In order to enable this setting, please follow Google’s instructions.

Configuring xDI’s SMTP metadata

The "Outgoing server (SMTP)" node should be configured like this:

  • Name: GmailSmtp (for example)

  • Host: smtp.gmail.com

  • Port: 465

  • User: <google-user-account>@gmail.com

  • Password: <google-user-password>

  • Use secure protocol: SSL

Using the SMTP metadata with a SendMail action

Simply drag and drop the SMTP metadata on the SendMail action. The hostname, port, user, password, and SSL mode will be automatically inherited from the metadata.

Set the required MAIL_FROM and MAIL_TO parameters, and the action should work fine.