Mailgun Email Preview service with RESTful JSON HTTP API for providing email previews.
- Get Emailpreview Test Info
Email Preview API (1.0.0)
https://api.mailgun.net/
https://api.eu.mailgun.net/
Code Analysis
The Code Analysis API analyzes HTML email content to detect CSS features and provides comprehensive compatibility reports across major email clients, including support statistics, version-specific compatibility data, and detailed feature breakdowns to ensure optimal email rendering.
Request
Creates a new email preview test.
WARNING: This endpoint is deprecated in favor of our V2 endpoint.
- US Mailgun
https://api.mailgun.net/v1/preview/tests
- EU Mailgun
https://api.eu.mailgun.net/v1/preview/tests
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
-u <username>:<password> \
https://api.mailgun.net/v1/preview/tests \
-H 'Content-Type: application/json' \
-d '{
"subject": "some subject",
"url": "https://example.com",
"content_checking": {}
}'{ "id": "gmail" }
Request
Returns test info.
WARNING: This endpoint is deprecated in favor of our V2 endpoint.
- US Mailgun
https://api.mailgun.net/v1/preview/tests/{test_id}
- EU Mailgun
https://api.eu.mailgun.net/v1/preview/tests/{test_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.mailgun.net/v1/preview/tests/{test_id}'{ "subject": "string", "date": 0, "completed": [ "string" ], "processing": [ "string" ], "bounced": [ "string" ], "content_checking": { "link_validation": { … }, "image_validation": { … }, "accessibility": { … } } }
Request
Deletes the specified test.
WARNING: This endpoint is deprecated in favor of our V2 endpoint.
- US Mailgun
https://api.mailgun.net/v1/preview/tests/{test_id}
- EU Mailgun
https://api.eu.mailgun.net/v1/preview/tests/{test_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
-u <username>:<password> \
'https://api.mailgun.net/v1/preview/tests/{test_id}'{ "success": true }