How to add cc and bcc recipients in email

You can add cc and bcc details in your email in 2 ways.

  1. Using API
  2. 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

  1. Click 'Enter From and Cc/Bcc detals' above the Subject line.
  2. To add Cc/Bcc details, click the CC/BCC tab and enter the details as shown.
  1. 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.