On Sat, 19 Sep 2020 at 11:02, P&R Music&video's
<[email protected]> wrote:
>
> here is my playbook
> ---
>      - hosts:all
>        tasks:
>           -   name: send mail
>               mail:
>                     host: "smtp.gmail.com"
>                     port: 587
>                     sender: "[email protected]"

There is no 'sender' argument. See
https://docs.ansible.com/ansible/latest/modules/mail_module.html


Other than that it looks OK.
So, what is the EXACT error output you get when running the task>?
Also what version etc etc.

And keep in mind Gmail requires an application specific password:
https://support.google.com/mail/answer/185833?hl=en

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwN0cXaXgO10GvpGH6DLf0Mx0YSywUoGskP8mb7NAbC6OA%40mail.gmail.com.

Reply via email to