Hi Guys,
I have written a play for sending an email.
I am able to send an email but in receivers inbox it’s going into spam folder. Can someone please help so that mail will go in inbox.
Thanks in advance.
- name: Mail sending Using mail Module mail: host: localhost port: 25 to: xyz@example.com subject: Ansible Port Configuration Output body:
{{ lookup(‘file’, “./output/{{ inventory_hostname }}.txt”) }}
delegate_to: localhost