SMTP Mailer API

The SMTP Mailer forwards messages from mqtt to the specified email recipients.

To use the SMTP Mailer you must know its service id. By default it will be smtp_mailer.

Topics

  • devices/<smtp_mailer_service_id>/send_email

  • devices/<smtp_mailer_service_id>/send_email_to/<recipient_email>

Payload

JSON Object

Field Value Notes

to

Recipient email address

Required for send_email topic.
For send_email_to, the next term in the topic will be used.

When using send_email_to the topic email address will override the payload.

subject

The email subject

body

The plain text body of the message

Either this or html is required. body takes precedence.

html

The html body of the message

Either this or body is required. body takes precedence.

from

The email address for the sender

Optional. If not set, the actual sending email address will be used.