# Can you send mail within assert?

**URL:** <https://forum.ansible.com/t/can-you-send-mail-within-assert/31842>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [December 17, 2019, 11:08pm UTC](https://forum.ansible.com/t/can-you-send-mail-within-assert/31842 "2019-12-17T23:08:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [December 17, 2019, 11:08pm UTC](https://forum.ansible.com/t/can-you-send-mail-within-assert/31842/1 "2019-12-17T23:08:21Z")

</div>

use a `block`, send mail in the `rescue` section and then use a `fail`  
task to 'continue the error'
