Hi All,
I am trying to send email in html but email body display the same html file.
Playbook:
---
- name: Sending an e-mail
mail:
host: XXXXX
port: 25
from: XXXXXX
to: "{{ to }}"
subject: Reports
attach: "{{ attach }}"
body:
<h1>Hi,</h1>
<p style="color:red">Hope you are doing well.</p>
<strong>Thanks,</strong>
<p style="color:green">XXXX</p>
PFA screenshot.[image: mail_module.jpg]
--
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/6dd90026-20df-4a16-a8dd-8475a634f944n%40googlegroups.com.