Simple. Fast. Secure. Send emails programmatically with a single HTTP request.
Millisecond response times. Enterprise-grade SMTP infrastructure. Real-time delivery.
Military-grade encryption. Timing-safe API keys. TLS/STARTTLS support.
Works with PHP, Python, Node.js, Ruby. Simple REST API. JSON responses.
Custom sender names, CC, BCC. HTML & plain text. Complete flexibility.
Run on your servers. No vendor lock-in. Complete infrastructure control.
Handle thousands of emails per minute. Bulk sending support. Grows with you.
<?php
$data = [
'key' => 'YOUR_API_KEY',
'to' => 'user@example.com',
'subject' => 'Hello',
'body' => '<h1>Welcome</h1>',
'from_name' => 'Your App'
];
$ch = curl_init(
'https://mail.ezee.li/public/send.php'
);
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS =>
http_build_query($data),
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(
curl_exec($ch), true
);
curl_close($ch);
if ($response['success']) {
echo 'Email sent!';
}
?>
import requests
data = {
'key': 'YOUR_API_KEY',
'to': 'user@example.com',
'subject': 'Hello',
'body': '<h1>Welcome</h1>',
'from_name': 'Your App'
}
response = requests.post(
'https://mail.ezee.li/public/send.php',
data=data
)
result = response.json()
if result['success']:
print('Email sent!')
else:
print(f"Error: {result['error']}")
| Parameter | Required | Type | Description |
|---|---|---|---|
key |
Yes | String | API secret key for authentication |
to |
Yes | String | Recipient email (comma-separated for multiple) |
subject |
Yes | String | Email subject line |
body |
Yes | HTML | Email body (HTML content) |
cc |
No | String | CC recipient(s), comma-separated |
bcc |
No | String | BCC recipient(s), comma-separated |
text |
No | String | Plain text alternative body |
from_name |
No | String | Custom sender display name |
{
"success": true,
"message": "Email sent successfully"
}
{
"success": false,
"error": "Missing required fields: to, subject, body"
}
Create a strong API key. Store it securely in environment variables.
Send a POST request with required parameters to our endpoint.
Check JSON response for success status and error messages.