Security
basicAuth
Email address of the recipient(s). Supports friendly name format. Example: Bob <bob@host.com>. If a friendly name contains a comma, we recommend submitting each recipient in a separate to field. Alternatively, use commas to separate multiple recipients. Duplicate addresses are automatically ignored. We recommend enclosing friendly names (display names) in double quotes when they contain special characters, such as commas. For example: "Bob, Account Manager" <bob@example.com>. This follows RFC 5322 formatting and helps avoid ambiguity when specifying multiple recipients. Simple names such as Bob <bob@example.com> do not require quotes.
- US Mailgunhttps://api.mailgun.net/v3/domains/{domain_name}/messages/{storage_key}
- EU Mailgunhttps://api.eu.mailgun.net/v3/domains/{domain_name}/messages/{storage_key}
curl -i -X POST \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/domains/{domain_name}/messages/{storage_key}' \
-H 'Content-Type: multipart/form-data' \
-F to=stringA 200 response
The unique identifier of the message as defined by RFC-2392.
Response
{ "id": "message-id", "message": "Queued. Thank you." }