Skip to content
Info

The following adheres to Send API v3.0

Send to multiple recipients

To send the same email to multiple contacts, add Email addresses in the Recipients list. Each recipient will receive a dedicated message.

Example

# This call sends an email to 2 recipients.
curl -s \
	-X POST \
	--user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
	https://api.mailjet.com/v3/send \
	-H 'Content-Type: application/json' \
	-d '{
		"FromEmail":"pilot@mailjet.com",
		"FromName":"Mailjet Pilot",
		"Subject":"Your email flight plan!",
		"Text-part":"Dear passenger, welcome to Mailjet! May the delivery force be with you!",
		"Html-part":"<h3>Dear passenger, welcome to <a href=\"https://www.mailjet.com/\">Mailjet</a>!<br />May the delivery force be with you!",
		"Recipients":[{"Email":"passenger1@mailjet.com","Name":"passenger 1"},{"Email":"passenger2@mailjet.com","Name":"passenger 2"}]
	}'

API Response

{
  "Sent": [
    {
      "Email": "passenger1@mailjet.com",
      "MessageID": 20547681647433000
    },
    {
      "Email": "passenger2@mailjet.com",
      "MessageID": 20547681647433001
    }
  ]
}