Sends a letter through an SMTP server of your own.
Fields
| Field | Type | Required | What it does |
|---|---|---|---|
host | string | yes | SMTP host, for example smtp.gmail.com. A private or local address is refused. |
port | number | Defaults to 587 with STARTTLS and 465 with TLS. | |
security | one of: starttls, tls | starttls upgrades a plain connection on 587; tls connects encrypted on 465. Sending in the clear is not an option. | |
username | string | Sign-in name. Keep the pair in flow variables. | |
password | string | Sign-in secret: {{variables.SMTP_PASSWORD}}, never the value itself. | |
from | string | yes | Sender, plain or as "Name <box@example.com>". Most servers demand the account address here. |
to | string | yes | Recipients, separated by commas. At most 20 per letter. |
subject | string | Subject line, may contain {{expressions}}. | |
body | string | The letter, may contain {{expressions}}. | |
html | boolean | Send the body as HTML instead of plain text. | |
replyTo | string | Where answers should go, if not the sender. |
Output
ok, messageId, accepted (array of addresses the server took), from, subject
Notes
Talks SMTP itself over a TCP socket, always encrypted. The password never appears in the output or an error. A server that refuses one recipient fails the node, and the error names that address.