Skip to main content
Sends one email. The host, login, and From stay on the node. Prefer Secrets via {{secret:mailbox-password}}. The password never goes to the model and is not in the result. This does not read the inbox. IMAP fetch does.

Input

Inspector Settings. Empty-field rules for the Graph: Previous nodes. Insert value is on Host, User, Password, From, To, Subject, Text, HTML, and Message. On an Agent Tool, To, Subject, Text, and HTML can be Agent decides or Fixed. Host, Port, Encryption, User, Password, From, and Message stay on the node. A line break in To, From, or Subject is removed. If that leaves more than one mailbox, the step fails.

Output

On the next node, Previous nodes lists Send email: Result ({{Send email.text}} while the name is unique). A refused recipient does not fail the run:
A missing host, a blocked host, a TLS failure, or a failed login fails the run. The body and the password are not in the result.

Many recipients

One run sends one page of rows. Read records and Loop cap that page. A Cron trigger starts the next run. Import the list on State. A list that does not fit in one file is a second import into the same collection, with the address as the key. Put this inside the Loop, in order. Name the first Code node Prepare. Its input is the current row (input.data is your columns).
email, status, and name are columns in your file. Update records reads this JSON. Leave Collection empty on that node when collection is in the JSON. See Update records. Send email comes next. Message is {{Prepare.text}}. Host, User, Password, and From use {{secret:Name}}. Name the next Code node Finish. Its input is the Result above.
A second Update records reads that JSON. Outside the Loop, Read records filters the status you have not marked yet, and Limit is 100. Rows left at sending stay out of the next run, including when the run stops after the server accepts the message and before Finish.

Limits

One recipient. No attachments. Subject up to 998 characters. Text and HTML up to 256000 characters each. A larger body fails the step.