# Change reply email address for mail to supplier to food coops's email address instead of personal one

**URL:** <https://forum.foodcoops.net/t/change-reply-email-address-for-mail-to-supplier-to-food-coopss-email-address-instead-of-personal-one/611>\
**Category:** Foodsoft Developement\
**Created:** [April 14, 2023, 11:25am UTC](https://forum.foodcoops.net/t/change-reply-email-address-for-mail-to-supplier-to-food-coopss-email-address-instead-of-personal-one/611 "2023-04-14T11:25:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![twothreenine](https://forum.foodcoops.net/user_avatar/forum.foodcoops.net/twothreenine/32/36_2.png) [@twothreenine](https://forum.foodcoops.net/u/twothreenine)\
**Post date:** [April 14, 2023, 11:25am UTC](https://forum.foodcoops.net/t/change-reply-email-address-for-mail-to-supplier-to-food-coopss-email-address-instead-of-personal-one/611/1 "2023-04-14T11:25:38Z")

</div>

The automatic mail which is sent from Foodsoft to a supplier when the order closes has the following header in our case:

```auto
From Foodsoft <noreply@app.foodcoops.at>
To supplier_email
CC user_email
Reply to user_email

```

Where `user_email` the private email address of the one who opened the order.  
So when the supplier replies to the email, the reply is sent to that user by default.

We would like to be able to:

- change the replay address to the food coop’s email
- (optionally) take the user\_email out of CC or put it in BCC for privacy reasons

I see that this is [written in the code without any option to change it](https://github.com/foodcoops/foodsoft/blob/f2d5936cf07e1bdeb8742c302174f24e9f0957a2/app/mailers/mailer.rb#L76-L91). What do you think would be the best way to change this? Make reply to food coop’s email to default or rather leave it that way?

There are also some settings which we could use for this:

```auto
email_from
email_replyto
email_sender
[...]
reply_email_domain

```

---

<div class="post-metadata">

**Author:** ![steffen](https://forum.foodcoops.net/user_avatar/forum.foodcoops.net/steffen/32/35_2.png) [@steffen](https://forum.foodcoops.net/u/steffen)\
**Post date:** [April 21, 2023, 3:40pm UTC](https://forum.foodcoops.net/t/change-reply-email-address-for-mail-to-supplier-to-food-coopss-email-address-instead-of-personal-one/611/2 "2023-04-21T15:40:37Z")

</div>

Maybe we can introduce a new configuration settings for the sender mail address with a fallback to the old behaviour.
