Email API key features

|

View as Markdown

Use the Send Email messages API endpoint to send either a single message or batch messages to many recipients in a single request.


Fully featured email

Send one or more emails with attachments and rich HTML content. See the Send fully featured email API endpoint for reference.


Multiple recipients

Send the same email to multiple recipients by including more than one to, cc, or bcc parameter in the request.

curl
1 
2 curl -s --user user:password \
3 https://./3/send \
4 -F from='Jane Smith ' \
5 -F to='[email protected]' \
6 -F to='[email protected]' \
7 -F cc='[email protected]' \
8 -F cc='[email protected]' \
9 -F bcc='[email protected]' \
10 -F bcc='[email protected]' \
11 -F subject='Mail subject text' \
12 -F text='Mail body text' \
13 --form-string html='Html bodyRich HTML message body.' \
14 -F attachment=@files/image1.jpg

Multiple attachments

Add more than one attachment parameter in the request to send emails with multiple attachments.


Templates for personalized emails

Personalization improves engagement and deliverability. The API supports multiple ways to customize messages:

  • Templates: Define templates in the Infobip web interface and call them with templateId.
  • Dynamic placeholders: Insert personalized values via the to parameter or defaults in the request.

Add placeholder values within the request to send personalized messages, or pass a templateId for predefined templates created in the web interface.



Was this page helpful?