[mail.smtp.send]
mail.smtp.send is a slot in the mail namespace, in Hyperlambda, the language of Magic Cloud. Sends one or more email messages through SMTP from child [message] nodes.
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
[message] |
lambda | yes | Email message to send. Can be repeated. |
[message] / [to] |
lambda | yes | Email address collection. |
[message] / [to] / unnamed child node |
lambda | yes | Structured address containing [email] and optional [name]. Can be repeated. |
[message] / [to] / unnamed child node / [email] |
string | yes | Email address. |
[message] / [to] / unnamed child node / [name] |
string | no | Display name. |
[message] / [entity] |
string | yes | MIME entity declaration for the message body; node value is the MIME content type. |
[message] / [entity] / [headers] |
lambda | no | MIME headers. |
[message] / [entity] / [headers] / any node name |
string | no | Header name and value. Can be repeated. |
[message] / [entity] / [content] |
string | no | Inline MIME part content. |
[message] / [entity] / [filename] |
string | no | File path to use as MIME part content. |
[message] / [subject] |
string | no | Message subject. |
[message] / [from] |
lambda | no | Email address collection. |
[message] / [from] / unnamed child node |
lambda | no | Structured address containing [email] and optional [name]. Can be repeated. |
[message] / [from] / unnamed child node / [email] |
string | yes | Email address. |
[message] / [from] / unnamed child node / [name] |
string | no | Display name. |
[message] / [cc] |
lambda | no | Email address collection. |
[message] / [cc] / unnamed child node |
lambda | no | Structured address containing [email] and optional [name]. Can be repeated. |
[message] / [cc] / unnamed child node / [email] |
string | yes | Email address. |
[message] / [cc] / unnamed child node / [name] |
string | no | Display name. |
[message] / [bcc] |
lambda | no | Email address collection. |
[message] / [bcc] / unnamed child node |
lambda | no | Structured address containing [email] and optional [name]. Can be repeated. |
[message] / [bcc] / unnamed child node / [email] |
string | yes | Email address. |
[message] / [bcc] / unnamed child node / [name] |
string | no | Display name. |
[message] / [reply-to] |
lambda | no | Email address collection. |
[message] / [reply-to] / unnamed child node |
lambda | no | Structured address containing [email] and optional [name]. Can be repeated. |
[message] / [reply-to] / unnamed child node / [email] |
string | yes | Email address. |
[message] / [reply-to] / unnamed child node / [name] |
string | no | Display name. |
Nodes nested deeper than 6 levels, and nodes that repeat one of their own ancestors, are not listed. The JSON declaration below has all of them.
Guide: How to use [mail.smtp.send]
JSON declaration
This is the complete declaration of mail.smtp.send, as the running system describes it. It is also published as slot.json.
JSON declaration (loads when opened)
← mail.pop3.fetch |
all mail.* slots |