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>. 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.

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." }