# error sending mail

**URL:** <https://forum.ansible.com/t/error-sending-mail/37051>\
**Category:** Ansible Project\
**Created:** [August 30, 2022, 6:53pm UTC](https://forum.ansible.com/t/error-sending-mail/37051 "2022-08-30T18:53:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abel\_Laime](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Abel\_Laime](https://forum.ansible.com/u/Abel_Laime)\
**Post date:** [August 30, 2022, 6:53pm UTC](https://forum.ansible.com/t/error-sending-mail/37051/1 "2022-08-30T18:53:39Z")

</div>

“The module mail was redirected to community.general.notification.mail, which could not be loaded.”

code:

- name: Mail  
mail:  
host: [server.com](http://server.com)  
port: XXX  
username: XXXXXXXX  
password: XXXXXXXXXX  
body: ‘Change 1205 is live.’

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [August 30, 2022, 6:59pm UTC](https://forum.ansible.com/t/error-sending-mail/37051/2 "2022-08-30T18:59:18Z")

</div>

Hi,

did you install the community.general collection?

Cheers,  
Felix

---

<div class="post-metadata">

**Author:** ![Abel\_Laime](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Abel\_Laime](https://forum.ansible.com/u/Abel_Laime)\
**Post date:** [August 31, 2022, 12:29pm UTC](https://forum.ansible.com/t/error-sending-mail/37051/3 "2022-08-31T12:29:36Z")

</div>

Yes.  
I install contains collector.  
Example:  
requirements.yml

collections:

# Install ansible.posix Ansible Collection

- name: community.windows

source: [https://galaxy.ansible.com](https://galaxy.ansible.com)

- name: community.general

source: [https://galaxy.ansible.com](https://galaxy.ansible.com)

- name: ansible.windows

source: [https://galaxy.ansible.com](https://galaxy.ansible.com)

---

<div class="post-metadata">

**Author:** ![Abel\_Laime](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@Abel\_Laime](https://forum.ansible.com/u/Abel_Laime)\
**Post date:** [September 6, 2022, 2:32pm UTC](https://forum.ansible.com/t/error-sending-mail/37051/4 "2022-09-06T14:32:22Z")

</div>

it’s solved! =)

I add:

- name: Mail  
mail:  
host: [server.com](http://server.com/)  
port: XXX  
username: XXXXXXXX  
password: XXXXXXXXXX  
body: 'Change 1205 is live.

_ **delegate\_to: localhost** _

it works fine

[https://github.com/ansible-collections/community.general/issues/4943](https://github.com/ansible-collections/community.general/issues/4943)
