Skip to main content

SendEmail

Send emails directly without using templates. Supports batch sending to multiple recipients. All recipients will receive emails with the same content.

Request Information

  • Request Method: POST
  • Request Path: /api/v1/email/SendEmail
  • Content-Type: application/json

Notes

  • TargetEmailAddress array length is limited to 1-100 email addresses
  • Subject length is limited to 1-200 characters
  • Content requires at least 1 character and supports HTML format
SendEmailstringrequired
Sender email address
?
TargetEmailAddressstring[]required
Recipient email address string array (1-100)
?
Subjectstringrequired
Email subject, length 1-200 characters
?
Contentstringrequired
Email content (HTML supported), minimum 1 character
?
FromNamestring
Sender nickname
?

LANGUAGE

CREDENTIALS

👁️
🔒
🔑Log in to get ACCESSKEY_ID and ACCESSKEY_SECRET

URL

POST
CURL Request
curl -X POST "https://api.uspeedo.com/api/v1/email/SendEmail" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Basic $(echo -n 'ACCESSKEY_ID:ACCESSKEY_SECRET' | base64)" \
-d '{
"SendEmail": "sender@example.com",
"TargetEmailAddress": [
"recipient1@example.com",
"recipient2@example.com"
],
"Subject": "Welcome to uSpeedo Email Service",
"Content": "<html><body><h1>Welcome</h1><p>This is a test email.</p></body></html>",
"FromName": "uSpeedo"
}'

RESPONSE

Click Try It! to start a request and see the response here.

Response Format

Field NameTypeDescription
RetCodeintReturn code, 0 indicates success
MessagestringReturn message
SessionNostringSession number, used to query sending status
FailedTargetEmailsarrayList of failed recipients