This API provides an HTTP interface to send emails using SMTP credentials.
POST /api/send-email
{
"to": "recipient@example.com",
"from": "sender@yourdomain.com",
"subject": "Your email subject",
"message": "Your email message content",
"smtp": {
"host": "smtp.example.com",
"port": 587,
"auth": {
"user": "your_username",
"pass": "your_password"
}
}
}
{
"success": true,
"messageId": "unique-message-id",
"timestamp": "2025-05-22T12:34:56Z"
}
For errors:
{
"success": false,
"error": "Error message"
}