The list_of_mail_to list (which is used for the SMTP TO: field) is generated as follow, so SMTP servers which are strictly follows RFC returning errors.
"to": "[] + [ 'name@domain.com' ]",
This PR updating list_of_mail_to generation, so the final result looks like:
What does this PR do?
The
list_of_mail_to
list (which is used for the SMTPTO:
field) is generated as follow, so SMTP servers which are strictly follows RFC returning errors.This PR updating
list_of_mail_to
generation, so the final result looks like:How should this be tested?
This PR was tested by sending emails using the
email-notify-list-of-users.yml
playbook.People to notify
cc: @redhat-cop/infra-ansible