Hi,
I am using elastic cloud.
I have just created a script and I am getting this error;
MessagingException[failed to send email with subject [Daily MNO Snapshot] via account [work]]; nested: SendFailedException[Invalid Addresses]; nested: SMTPAddressFailedException[554 5.7.1 mtarimo@aimgroup.co.tz: Recipient address rejected: Access denied\n];
Below is my configuration;
PUT _watcher/watch/report_mno_mngt
{
"trigger": {
"schedule": {
"interval": "1d"
}
},
"actions": {
"work": {
"email": {
"to": "'micahel tarimo mtarimo@aimgroup.co.tz'",
"subject": "Daily MNO Snapshot",
"body": "Please find attached the snapshot for today",
"attachments": {
"mno_report_mngt.pdf": {
"http": {
"content_type": "application/pdf",
"request": {
"method": "POST",
"headers": {
"kbn-xsrf": "reporting"
},
"auth": {
"basic": {
"username": "theuser",
"password": "dfdfdfd"
}
},
"read_timeout": "300s",
"url": "https://3463d22a13e96ssa5524567e1c30c2b5cd.tz-west-7.aws.found.io/api/reporting/generate/dashboard/MNO-Dashboard?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-15m,mode:quick,to:now))&_a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:mno_performance,panelIndex:4,row:1,size_x:6,size_y:4,type:visualization),(col:7,id:mno_gender,panelIndex:5,row:1,size_x:3,size_y:2,type:visualization),(col:10,id:mno_idtypes,panelIndex:6,row:1,size_x:3,size_y:2,type:visualization),(col:7,id:mno_quality_check,panelIndex:7,row:3,size_x:3,size_y:2,type:visualization),(col:10,id:mno_region_registrations_pie,panelIndex:8,row:3,size_x:3,size_y:2,type:visualization),(col:1,id:mno_region_registrations_line,panelIndex:9,row:5,size_x:12,size_y:3,type:visualization)),query:(query_string:(analyze_wildcard:!t,query:%27*%27)),title:%MNO%20Dashboard%27,uiState:(P-5:(vis:(legendOpen:!f)),P-7:(vis:(legendOpen:!f))))&sync"
}
}
}
}
}
}
}
}
I have followed the steps to whitelist the email addresses.
Is there anything I am doing wrong?
Thanks,
Michael