---
schema_version: "1"
id: bbe398897d2e853888cea9eb66c5c77c2756021d4c0d2ac9ef63220e58253e48
title: Set Reply-To Header for Email Messages
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_rn_25_10_email_reply_to.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_rn_25_10_email_reply_to.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 43e502e598bce7fff1d90570fa58aefd98b2736038ec52fcc8e97e145ec51032
description: Control where email replies are sent by setting the Reply-To header using the new addReplyTo method in the dw.net.Mail class. This allows recipients to reply to a different address than the sender, such as replying to a support team address when the From address is a no-reply address.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Set Reply-To Header for Email Messages

Control where email replies are sent by setting the Reply-To header using the new addReplyTo method in the dw.net.Mail class. This allows recipients to reply to a different address than the sender, such as replying to a support team address when the From address is a no-reply address.

The `dw.net.Mail` class now includes the `addReplyTo(String)` method to add Reply-To addresses to email messages.

Use this method when you want replies directed to a different address than the From address. For example, send email from `noreply@brand.com` but have replies go to `support@brand.com`.

You can call this method multiple times to add multiple Reply-To addresses. Each address must conform to the [RFC822](https://www.w3.org/Protocols/rfc822/) standard. The method returns the Mail object to support method chaining.

**Where:** This feature applies to B2C Commerce.

**How:** Use the new method in your scripts when creating email with the `dw.net.Mail` class. For example:

```
var mail = new dw.net.Mail();
mail.setFrom("noreply@brand.com");
mail.addReplyTo("support@brand.com");
mail.addTo("customer@example.com");
mail.setSubject("Order Confirmation");
mail.setContent("Thank you for your order.");
mail.send();
```

#### See Also

- [Class Mail](https://salesforcecommercecloud.github.io/b2c-dev-doc/docs/upcoming/scriptapi/html/api/class_dw_net_Mail.html)