Send Email
-------------------------
5. SEND EMAIL
-------------------------
Send Email: Sends an email via your configured SMTP server(s), with optional custom sender and reply-to.
Endpoint:POST /email/send
Parameters (JSON body):
api_key(required, string): Your Email Messaging API key.email(required, string): Recipient email address.subject(required, string): Email subject line.message(required, string): Email body content.reply_to(optional, string): Email address where replies should be sent.sender_email(optional, string): Specific sender/from email address.server_id(optional, integer): ID of the sending server; alternative tosender_email.
Example Request (Basic):
curl -X POST "https://umva.net/api/messaging/email/send" \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_EMAIL_API_KEY",
"email": "recipient@example.com",
"subject": "Hello from Email API",
"message": "This is the email body content",
"reply_to": "support@yourdomain.com"
}'Example Request (From Specific Server):
curl -X POST "https://umva.net/api/messaging/email/send" \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_EMAIL_API_KEY",
"email": "recipient@example.com",
"subject": "Hello from specific server",
"message": "This is the email body content",
"sender_email": "sender@mydomain.com"
/* or: "server_id": 1 */
}'Success Response Example (HTTP 200):
{
"success": true,
"message": "Email sent successfully",
"data": {
"server_name": "My SMTP Server",
"remaining_capacity": 95
}
}