# ansible email and template

**URL:** <https://forum.ansible.com/t/ansible-email-and-template/35906>\
**Category:** Ansible Project\
**Created:** [October 20, 2021, 6:26pm UTC](https://forum.ansible.com/t/ansible-email-and-template/35906 "2021-10-20T18:26:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Nalavade](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/mahesh_nalavade/32/7935_2.png) [@Mahesh\_Nalavade](https://forum.ansible.com/u/Mahesh_Nalavade)\
**Post date:** [October 20, 2021, 6:26pm UTC](https://forum.ansible.com/t/ansible-email-and-template/35906/1 "2021-10-20T18:26:49Z")

</div>

Hi All,

I am trying to send email in html but email body display the same html file.

Playbook:

> **(attachments)**
>
> ![mail_module.jpg](https://us1.discourse-cdn.com/ansible/original/2X/2/2e87ddab8c782e498f5f301aa59d83ce0f334cfe.jpeg)

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [October 20, 2021, 6:29pm UTC](https://forum.ansible.com/t/ansible-email-and-template/35906/2 "2021-10-20T18:29:35Z")

</div>

You would need to send a multipart mime email, to allow an email client to properly render the HTML content, which the mail module provides no assistance with.

As such, you would have to build a multipart body manually in your playbook or template, which will likely require some learning and effort.

> **(attachments)**
>
> ![mail_module.jpg](https://us1.discourse-cdn.com/ansible/original/2X/2/2e87ddab8c782e498f5f301aa59d83ce0f334cfe.jpeg)
