How to add cc and bcc recipients in email
You can add cc and bcc details in your email in 2 ways.
- Using API
- Using Email editor
How to add cc and bcc recipients using API
Sample code with cc and bcc details in Notification Event API. You can add any no of emails to cc and bcc.
curl -X POST 'https://api.fyno.io/v1/{WorkspaceId}/test/event' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"event": "ReleaseNote",
"to": {
"email": "[email protected]"
},
"data": {
"name": "Rahul",
"key": "value"
},
"channel": {
"email": {
"append": {
"cc": [
{
"name": "name1",
"email": "[email protected]"
}
],
"bcc": [
{
"name": "name2",
"email": "[email protected]"
}
]
}
}
}
}'
How to add cc and bcc recipients using Email editor
This is available only in Stripo Editor
To add cc/bcc details using Email editor, follow the below steps
- Click 'Enter From and Cc/Bcc detals' above the Subject line.
- To add Cc/Bcc details, click the CC/BCC tab and enter the details as shown.
- Once 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
Cc and Bcc details in logs
In the sent logs, you'll find the recipient details (destination, cc, and bcc) in the Summary tab.
For the above scenario, the sent logs will display the following information.
Updated about 1 month ago