from
{ "from": "invoices@yourcompany.com", "to": [ "user@example.com" ], "cc": [ "user@example.com" ], "bcc": [ "user@example.com" ], "subject": "string", "text": "string", "html": "string", "attachments": [ { "filename": "att1.jpg", "contentType": "image/jpeg", "base64": "iYQ..." } ] }
curl --location --request POST 'https://apis.mailcompose.com/apis/v1/send' \ --header 'Api-Key: xyz-xyz-xyz-xyz-xyz' \ --header 'Api-Secret: xyz-xyz-xyz-xyz-xyz' \ --header 'User-Agent: YourCompanyName' \ --header 'Content-Type: application/json' \ --data-raw '{ "from": "invoices@yourcompany.com", "to": [ "user@example.com" ], "cc": [ "user@example.com" ], "bcc": [ "user@example.com" ], "subject": "string", "text": "string", "html": "string", "attachments": [ { "filename": "att1.jpg", "contentType": "image/jpeg", "base64": "iYQ..." } ] }'
{ "success": true, "payload": { "messageId": "snmdkm2k3em2@sub.domain.com", "mailcomposeEmailId": "makcwi2d2w1212e", "threadId": "tsdvjne12e12pkm1pk" } }