For the complete documentation index, see llms.txt. This page is also available as Markdown.

Single Email Send

This request is used to send emails in real time or scheduled.

URL

POST https://api.mailpartner.fr/v1/send

Required Parameters

Name
Value

subject

Email subject

htmlContent

HTML content of the email.

The #READ_ONLINE# tag adds the link "If this email does not display correctly, please use the following link:" The #UNSUBSCRIBE_LINK# tag adds the unsubscribe link

From

Sender email address of the send email: email name (optional): Name

to

You can add up to 500 recipients:

email

Recipient's email

name (optional)

Recipient's name

Optional Parameters

Name
Value

replyTo

variables

You can add up to 8 custom variables containing text only (no HTML). Ex: "variables":{"firstname":"John", "lastname": "Doe"}These variables must be added in the template or in htmlContent like this: #FIRSTNAME# and #LASTNAME#

attachments

3 attachments maximum. 5MB per attachment.

base64Content: The content must be Base64-encoded. You must also specify the MIME type and a file name.

filename: Attachment name (without extension)

contentType : MIME type of the attachment.

You can see the official list of MIME types here. For the content, you can find an online Base64 encoder – for example here. Once the file is encoded, use the resulting string as the value of Base64Content.

Full JSON example:

tag

Lowercase identifier (no spaces) between 3 and 20 characters

scheduledDeliveryDate

Scheduled send date of the email, in dd/mm/YYYY format. Only set this if you want the emails to be sent later.

time

Send time of the email (0-24 format), required if scheduledDeliveryDate is set.

minute

Send minute of the email (0-55 format, in five-minute intervals), required if scheduledDeliveryDate is set.

sandbox

1 for Sandbox mode

No email will be sent, and there will be no charge on your account. These emails are automatically removed from your sending lists every day.

_format

json or xml

email

Email

name (optional)

Name

Request

Response

Last updated