hemant A
hemant A

Reputation: 185

Email alerts on failure in Airflow without turning on "Allow less secure apps"

To send email failure alerts, Airflow needed an SMTP username and password for authentication. I am using google mail for that but google treats all apps that use username and password as less secure. So to make it work, I need to enable "Allow less secure apps" in the google account settings. Is there a way to use google SMTP mail without turning on "Allow less secure apps" settings?

Upvotes: 0

Views: 270

Answers (1)

Sandaruwan Lakshitha
Sandaruwan Lakshitha

Reputation: 11

You can create a google app password for a specific application and then disable "Allow less secure apps".This google documentation may help you google answer. You can use the app password instead of your account password.

Upvotes: 1

Related Questions