How to override email sender details

You can override details in your email in 2 ways.

  1. Using API
  2. Using Email editor

How to override sender details using API?

During the integration setup, you would have specified a ‘From_Email’ address. If you have multiple email addresses such as noreply@xyz.com, marketing@xyz.com, cs@xyz.com, and you wish to use the appropriate email address depending on the communication you send, you can dynamically assign values to From_Email. To achieve this, please follow the steps outlined below.

1

Define Default Email

Within the integrations popup, include ‘from_email’ as shown below. In this example, tech@fyno.io will serve as the default From Email if the provided email ID in the payload is not valid. If you prefer not to use the default email, simply specify ‘from_email’ in the respective field.

Adding a default ‘from_email’ is advisable to ensure uninterrupted communication.
2

Override Sender Details via API

In the Notification event payload, you need to pass the from_email as shown below. By doing so, the emails triggered via this notification event will go from ‘tech@fyno.io’.

Override Sender Details
1curl -X POST 'https://api.fyno.io/v1/<WorkspaceID>/test/event' \
2-H 'Authorization: Bearer <API_KEY>' \
3-H 'Content-Type: application/json' \
4-d '{
5 "event": "ReleaseNote",
6 "to": {
7 "email": "xyz@gmail.com"
8 },
9 "data": {
10 "name": "Rahul",
11 "key": "value"
12 },
13 "channel": {
14 "email": {
15 "override": {
16 “from_email": “tech@fyno.io"
17 }
18 }
19 }
20}'
The same process can be followed for from_name field also.

How to override sender details in Email editor

To override the sender details configured in the Service Provider integration, follow the below steps

1Click ‘Enter From and CC/BCC details’ above the Subject line.
2You will see the sender details as shown below.
3Once you enter the sender details, it will look as shown.
4To override CC/BCC details, click the CC/BCC tab and enter the details as shown.
5Once you entered CC and BCC details, it will look like shown below
CC and BCC details provided in Email template will override the CC and BCC details provided in the Notification Event API