# Ansible playbook to check whether "retrieve the information of an email subject"

**URL:** <https://forum.ansible.com/t/ansible-playbook-to-check-whether-retrieve-the-information-of-an-email-subject/35530>\
**Category:** Ansible Project\
**Created:** [July 21, 2021, 7:18am UTC](https://forum.ansible.com/t/ansible-playbook-to-check-whether-retrieve-the-information-of-an-email-subject/35530 "2021-07-21T07:18:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tcl\_Salem](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@Tcl\_Salem](https://forum.ansible.com/u/Tcl_Salem)\
**Post date:** [July 21, 2021, 7:18am UTC](https://forum.ansible.com/t/ansible-playbook-to-check-whether-retrieve-the-information-of-an-email-subject/35530/1 "2021-07-21T07:18:39Z")

</div>

Hello Team,  
I was trying to explore something on email notifications, where I am able to send emails successfully, and also able to retrieve mail successfull messages by using the debug module. another thing i would like to know , is there any way that we can retrieve the “email subject” alone for the delivered email?

for example : in the below playbook , I have the subject line for the email as “OS Patch report” . I need to retrieve this info alone for the email which I sent to check and verify .  
After searching I got some module called “read\_mail” but it looks like there is no ansible module present, and it did not work for me .

appreciate your ideas on this.

---

<div class="post-metadata">

**Author:** ![Tcl\_Salem](https://avatars.discourse-cdn.com/v4/letter/t/ee7513/32.png) [@Tcl\_Salem](https://forum.ansible.com/u/Tcl_Salem)\
**Post date:** [July 22, 2021, 2:48pm UTC](https://forum.ansible.com/t/ansible-playbook-to-check-whether-retrieve-the-information-of-an-email-subject/35530/2 "2021-07-22T14:48:58Z")

</div>

Hello Team,  
grateful for any inputs/suggestions for my rail mail query…🙂
