On Sat, 25 Jul 2020 at 18:43, Samir Kothawade <[email protected]> wrote:
>
> Ansible script:
>
> - hosts: local
>   gather_facts: no
>   tasks:
>    - name: mailing longevity report
>      become: true
>      mail:
>         host: localhost
>         port: 25
>         from: [email protected] (Longevity Report)
>         to: Samir Kothawade <[email protected]>
>         subject:  testing mail Longevity Report
>         body: hi this is testing mail
>
>
> Output observed after running above script:
>

Hii

Please post actual text output instead of  unreadable screen dumps.

> I am not receiving emails after running above command despite if success 
> message from above script. Note -My network connectivity is good and 
> reachable to gmail as well.
> Can someone help me out with this.

The playbook is about *sending* mail. That went perfectly fine as you
can see from the output.
The *receiving* part is something different, there can be many reasons
why this didn't work. You need to look into the systems that are
involved further down the line.
Your local SMTP server will be a good place to start looking, but that
is off-topic for this list.

DIck

-- 
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/CAL8fbwOXmC7cQXgEkCtWFFQ9FiLMNkvNWLg51J%2BfXEAGgmBRTQ%40mail.gmail.com.

Reply via email to