Email Sending
Enable email sending, submit HTML or plain-text messages, and interpret the API response
Enable email sending
Email sending requires account enablement. Contact TextGrid support to enable email sending for your account.
If email is disabled, the API returns HTTP 400 with:
Email is disabled for this account. Please contact support
SMS or MMS access does not establish that email sending is enabled.
Send an email
Authenticate using the credentials for the account sending the email, then use Send Email.
Provide a nonempty message body and at least one recipient in to, cc, or bcc. The endpoint also supports a subject, sender display name, and reply-to address.
See Send Email for the complete request schema.
HTML and plain text
The message body is treated as HTML by default.
For plain-text messages, explicitly set:
{
"isBodyHtml": false
}Multiple recipients
The recipient fields are strings, not JSON arrays. Separate multiple email addresses with commas or semicolons.
The endpoint does not provide attachment-upload or attachment-URL fields.
Check the result
Check both the HTTP response and the returned Success value. HTTP 200 OK alone does not establish that the send succeeded.
| Field | Meaning |
|---|---|
Success | Whether the send operation succeeded. |
EmailID | Identifier returned for a successful send. Save it for reference. |
ErrorMessage | Additional error information when available. It may be absent even when Success is false. |
A successful send does not guarantee inbox placement, delivery to every recipient, or that the recipient opened the email.
The SMS delivery-status callback workflow does not apply to this endpoint.
Handle errors
If sending fails:
- Check whether email is enabled for the account.
- Confirm the recipient addresses.
- Verify that the body is nonempty.
- Review the response for account-balance or sending-limit restrictions.
- Contact support if the failure persists. Include the request time, account SID, and EmailID if available.
Do not include your Auth Token or Webhook Secret in support messages.
If a request times out or the connection fails, do not assume the email was never sent. Check available records before retrying to avoid duplicate emails.
See Error Code Reference for common API errors.
Updated 14 days ago