Send a test email with intelligent defaults based on domain health.
Features:
- Supports 3 test modes: basic, standard, full
- Auto-disables tracking based on test mode
- Basic spam word detection (not comprehensive scoring)
- Returns warnings and recommendations
- Provides next steps for new domains
Test Modes:
- basic: Disables all tracking regardless of request. Best for new domains.
- standard: Disables open tracking, enables click tracking. For warming domains.
- full: Honors your tracking preferences. For established domains.
Best Practice:
- Call
/api/v1/customer/domains/test-readiness/:domain_idfirst - Use the recommended test mode
- Review warnings before sending
- Follow next steps provided in response
Content Analysis: Set analyze_content: true to receive basic spam word warnings.
When HTML is supplied without a text value, the test send derives its plain-text MIME alternative using the same generator as bulk campaign delivery. This keeps test-message MIME structure representative of the production send path.
Note: This endpoint performs only basic spam detection. For comprehensive content scoring with detailed analysis, use
POST /api/content-score(subject to tier limits).
Security
ApiKeyAuth
Plain text email body. If omitted when html is provided, a plain-text version is automatically generated from the HTML before sending.
- US Data Centerhttps://api.mailerlogic.net/api/v1/customer/test-email
- EU Data Center (coming soon)https://eu-api.mailerlogic.net/api/v1/customer/test-email
- Basic test (new domain)
- Standard test with HTML
- Full test with all tracking
curl -i -X POST \
https://api.mailerlogic.net/api/v1/customer/test-email \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"domain_id": "d1234567-e89b-12d3-a456-426614174000",
"from": "test@mail.example.com",
"to": "you@gmail.com",
"subject": "Test Email",
"text": "This is a test email.",
"test_mode": "basic",
"analyze_content": true
}'Response
{ "message": "Test email queued successfully", "email": { "id": "e1234567-e89b-12d3-a456-426614174000", "from": "test@mail.example.com", "to": "you@gmail.com", "subject": "Test Email", "domain": "mail.example.com", "message_id": "<uuid@mail.example.com>", "status": "queued", "tracking": { … } }, "domain_info": { "age_in_days": 3, "has_custom_tracking": false }, "warnings": [ { … }, { … } ], "content_analysis": { "basic_check_performed": true, "spam_words_found": 0, "note": "For detailed content scoring and analysis, use POST /api/content-score (subject to tier limits)" }, "next_steps": [ "Check your inbox and mark the email as 'Not Spam' if it lands in spam", "Send 2-3 more test emails to trusted addresses today", "Gradually increase sending volume over the next 2 weeks", "Monitor your domain health score regularly", "Consider setting up a custom tracking domain to improve deliverability" ] }