Send

The Send Endpoint

The /send endpoint is the main API endpoint for sending messages through OhMySMTP. It accepts up to 50 emails in the To address field.

Send an email

Endpoint address

https://app.ohmysmtp.com/api/v1/send

Only HTTPS is supported

Headers

Header NameContents
Acceptapplication/jsonRequired
Content-Typeapplication/jsonRequired
OhMySMTP-Server-TokenSee authentication for detailsRequired

Body Parameters

NameTypeExamplesValidations
fromstringexample@domain.com

Full Name <example@domain.com>
Must be an email address or name & addr-spec as specified in https://tools.ietf.org/html/rfc822. Domain must be the domain associated with this API token.Required
tostringexample@domain.com

Full Name <example@domain.com>

example@domain.com, example2@domain.com, Full Name <example3@domain.com>
Must be an email address, name & addr-spec as specified in https://tools.ietf.org/html/rfc822 or a comma separated list of email addressesRequired
htmlbodystring<html><body><p>Content</p></body></html>Enclosing html tags are optionalRequired if textbody not supplied
textbodystringContentRequired if htmlbody not supplied
ccstringexample@domain.comMust be an email addressOptional
bccstringexample@domain.comMust be an email addressOptional
subjectstringEmail SubjectOptional
replytostringexample@domain.comOptional