0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[How to config Gmail as mail sender] [SMTP config]

Last updated at Posted at 2022-08-04

Gmail side (use 2-Step Verification and generate app password) :

*Because Google stopped supporting “Less Secure Apps” as of May 30th, 2022, seems this is a MUST to config this.

  1. Google Account -> Security -> 2-Step Verification -> Input password as asked -> Turn ON (you could use SMS to get Gmail code to activate 2-Step Verification)
  2. Google Account -> Security -> 2-Step Verification -> App password -> Input password as asked -> Select the app as mail and device... -> e.g. Other(Custom name) -> Input app name e.g. MyApp -> Generate
  3. Copy a 16-character password
  4. Use a 16-character password with Gmail username (xxx@gmail.com) in Liferay side.

Google support link here.

Liferay side:

  1. Control Panel -> Server Administration -> Mail
    1.1 Outgoing SMTP Server: smtp.gmail.com
    1.2 Outgoing Port: 465
    1.3 Use a Secure Network Connection: checked
    1.4 User Name: xxx@gmail.com
    1.5 Password: [Generated by Gmail side]
  2. Control Panel -> Instance Settings -> Email -> Email Sender
  3. Send as xxx@gmail.com
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?