{
"id" : "send_email",
"type" : "email",
"status" : "failure",
"error" : {
"root_cause" : [
{
"type" : "messaging_exception",
"reason" : "failed to send email with subject [Watcher Notification] via account [gmail_account]"
}
],
"type" : "messaging_exception",
"reason" : "failed to send email with subject [Watcher Notification] via account [gmail_account]",
"caused_by" : {
"type" : "authentication_failed_exception",
"reason" : "failed to connect, no password specified?"
}
}
}
I have done the configuration in the yml for gmail
#------------- WATCHER EMAIL ACCOUNT SETUP -------------------
xpack.notification.email.account:
gmail_account:
profile: gmail
smtp:
auth: true
starttls.enable: true
host: smtp.gmail.com
port: 587
user: alejandrochaves1997@gmail.com
#--------------------------------------------------------------
And also store the account SMTP password with the keystore command
bin/Elasticsearch-keystore add xpack.notification.email.account.gmail_account.smtp.secure_password
Any idea what might be happening?