Send
Send
post/v1/email
Send emails
Body Parameters
attachmentsarray of object
optional
A list of attachments to add to the email
bccunion
optional
string OR object OR array of string OR object
A single email or list of emails for one of the address fields
ccunion
optional
string OR object OR array of string OR object
A single email or list of emails for one of the address fields
fromunion
optional
string OR object
An email address and name
headersmap
optional
A set of headers to include the email that you send
htmlstring
optional
HTML content of the email. Can be specified alongside text
replyToListunion
optional
object OR array of object
A reply-to list of email addresses
subjectstring
optional
The subject line of the email
textstring
optional
Text content of the email, for email clients that may not support HTML
tounion
optional
string OR object OR array of string OR object
A single email or list of emails for one of the address fields
Returns
messagestring
curl https://api.val.town/v1/email \
-H 'Content-Type: application/json'200 Example
{
"message": "message"
}