Make the most of these powerful touchpoints between your brand and your customers.
curl --request POST \
--url https://control.msg91.com/api/v5/email/send \
--header 'Authkey: <authkey>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{"to":[{"name":"Mark","email":"[email protected]"}],"from":{"name":"Joe","email":"[email protected]"},"cc":[{"email":"[email protected]"},{"email":"[email protected]"}],"bcc":[{"email":"[email protected]"},{"email":"[email protected]"}],"domain":"The domain which you have registered with us. We sign DKIM with this domain.","mail_type_id":"1 for Transactional, 2 for Notificational, 3 for Promotional - Default is 3","in_reply_to":"If the current mail is reply of any mail then that mail Message ID.","reply_to":[{"email":"[email protected]"},{"email":"[email protected]"}],"attachments":[{"filePath":"Public path for file.","fileName":"File Name"},{"file":"File in Data URI format data:content/type;base64,<data>.","fileName":"File Name"}],"template_id":"YOUR_UNIQUE_TEMPLATE_NAME","variables":{"VAR1":"VAR1 VALUE","VAR2":"VAR2 VALUE"}}
'