SMTP Email Proxy API

This API provides an HTTP interface to send emails using SMTP credentials.

API Endpoint

POST /api/send-email

Request Format

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

Response Format

{
  "success": true,
  "messageId": "unique-message-id",
  "timestamp": "2025-05-22T12:34:56Z"
}
    

For errors:

{
  "success": false,
  "error": "Error message"
}