City of Boston use PostMark to relay emails.
Code for this service/endpoint is contained in the module bos_email
.
POST
/rest/email_token/create
Provides an email session token which must be supplied as a field when the form is submitted to therest/email_session
endpoints.
The session token is saved against the users session on the server.
POST
/rest/token/remove
Invalidates a previously created email session token.
POST
/rest/email_session/{server}
POST
/rest/email/{server}
Use email_session for additional security.
POST
/emails
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
authorization*
String
token {token}
email["token_session"]*
String
The session token.
email["to_address"]*
String
The recipient.
email["from_address"]*
String
The sender.
email["subject"]*
String
Subject for email.
email["message"]
String
Body for message (contactform)
email["useHtml"]
Int
Should mail be HTML format? 1 or 0
email["template_id"]
String
Use a POSTMARK template
email["cc"]
String
CC recipients for email.
email["bcc"]
String
BCC recipients for email.
email["{string}"]
String
Any other fields required by templates.