SMTP Settings using GMail

SMTP Settings using GMail

By: RalphC (WEM)

2023-12-22 05:57
last edited: 2023-12-22 06:49

Moderator

As you can read in this forum post, the WEM Default SMTP Server will be retired and every project is required to setup a specific SMTP server to send emails from the application.

One easy alternative is GMail - you can create a free account and set it up to use as SMTP Server in WEM.

GMail Security Requirements: read https://support.google.com/mail/answer/185833?hl=en

  • Your GMail account must be setup with Multi-Factor Authentication (with phone/auth app) > that will allow you to create App Passwords.
  • Then you can add App Passwords, to generate a specific password for your WEM Project(s). This will make sure that your GMail account stays secure (with MFA) and still let your WEM Application safely use the SMTP to send messages. If you have multiple projects and need multiple profiles, you can create multiple named-apps each with its own password; or you can choose to just use one profile for multiple projects.

WEM SMTP Profile: read https://docs.wem.io/platform/wemmodeler/project-settings/smtp-settings

Host: smtp.gmail.com (type it in, do not copy+paste to avoid adding invisible whitespace characters that might fail creating the connection)
Port: 587
Username: your full gmail email address
Password: your App Password as setup in GMail Security.

You can add multiple SMTP Profiles in WEM Modeler Workspaces - but there is no name-property to distinguish each profile - you can only distinguish on host and username. So if you are using multiple App Passwords for one and the same gmail address, it will not be easy to see if you've selected the correct profile in your Portal - so best to start with only one App Password - or use different gmail addresses for different projects.


Email Node:

FROM: your full gmail email address - or any alias that the SMTP-gmail address has permissions to send as.

Ralph - WEM Xpert since 2011

"I speak to machines with the voice of humanity"
-- Marillion, Man of a thousand faces --

wemscore 824 , 60 views, 0 replies

Direct link to this thread