Skip to content

Resend an email

Request

Security
basicAuth
Path
domain_namestringrequired

Domain name used to send the message

storage_keystringrequired

Storage key from the email's associated events (Example: Accepted/Delivered events storage.key field). Note: Storage keys are available for the duration of your domain's message retention policy.

Bodymultipart/form-datarequired
tostringrequired

Email address of the recipient(s). Supports friendly name format. Example: "Bob <bob@host.com>". Use commas to separate multiple recipients. Duplicate addresses are automatically ignored.

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=string

Responses

A 200 response

Bodyapplication/json
idstringrequired

The unique identifier of the message as defined by RFC-2392.

messagestringrequired

A success message

Response
{ "id": "message-id", "message": "Queued. Thank you." }