# Sending email from various addresses in different modules

**URL:** <https://www.dolibarr.org/forum/t/sending-email-from-various-addresses-in-different-modules/23681>\
**Category:** Using my Dolibarr\
**Tags:** v17\
**Created:** [April 28, 2023, 9:58am UTC](https://www.dolibarr.org/forum/t/sending-email-from-various-addresses-in-different-modules/23681 "2023-04-28T09:58:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lundwall](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/lundwall/32/6018_2.png) [@lundwall](https://www.dolibarr.org/forum/u/lundwall)\
**Post date:** [April 28, 2023, 9:58am UTC](https://www.dolibarr.org/forum/t/sending-email-from-various-addresses-in-different-modules/23681/1 "2023-04-28T09:58:39Z")

</div>

Hi, I have a problem that is slightly related to [“Changing the email sender for manual emails”](https://www.dolibarr.org/forum/t/changing-the-email-sender-for-manual-emails/17100), however I have more specific issues. The email address specified for the company is [info@mydomain.com](mailto:info@mydomain.com), which is what I want it to say on general pdf’s etc. The account I’m using for sending emails from Doli is simply set to [doli@mydomain.com](mailto:doli@mydomain.com), which is fine.

However, when manually sending out a purchase order, I’d like it to be from [order@mydomain.com](mailto:order@mydomain.com), when sending an update in another module [service@mydomain.com](mailto:service@mydomain.com), in a third it’d be good with [it@mydomain.com](mailto:it@mydomain.com) and so forth.

Here I can choose between [useremail@mydomain.com](mailto:useremail@mydomain.com) or [companyemail@mydomain.com](mailto:companyemail@mydomain.com). None of these are the ones I want, and none of these are allowed to be used as a sender from [doli@mydomain.com](mailto:doli@mydomain.com) account (Office 365 says definitely no on a server level).

My questions:

1. Without switching to a swallow-it-all-smtp service, how can I add different email accounts and email addresses to different modules?

2. How can I add email account details to the [useremail@mydomain.com](mailto:useremail@mydomain.com) that a user can send from?

Thank you.

---

<div class="post-metadata">

**Author:** ![dlnic](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@dlnic](https://www.dolibarr.org/forum/u/dlnic)\
**Post date:** [May 24, 2023, 5:54am UTC](https://www.dolibarr.org/forum/t/sending-email-from-various-addresses-in-different-modules/23681/2 "2023-05-24T05:54:36Z")

</div>

it seems a pro function you may need to pay some.

odoo are also with problem without extra addons
