condition requiredWhether to send. The mail is sent only when this is true (non-empty and not 0). Use it as a guard so the command does not fire on every page load - e.g. a flag, a {qss:} value, or an {ifin:} test. Empty or 0 means do nothing and return an empty string.
to requiredRecipient(s). One e-mail (jane@example.org), a JSON array of e-mails, or item ids of Reader records (separated by space or dash) in slices related to the current site; ids are matched to readers by their e-mail field. If the value contains an at sign it is treated as e-mail(s), otherwise as Reader ids.
subject optionalThe e-mail subject line.
body requiredThe message body, sent as HTML. Often a rendered {view:} or {item:} so the e-mail reuses a template. Required - an empty body sends nothing.
lang optionalLanguage/charset for the message, e.g. utf-8. Controls encoding and localized mail parts.
from optionalSender address shown in the From header. A plain address like actionapps@ecn.cz, or a display-name form written as the name followed by the address in angle brackets (ActionApps then actionapps@ecn.cz).
reply_to optionalReply-To address. Replies go here instead of the From address.
errors_to optionalErrors-To address. Bounce and delivery-error notices are sent here.
sender optionalSender header (the envelope/agent sending the mail), distinct from from.
cc optionalCarbon-copy recipient(s): one e-mail or a JSON array. Invalid addresses are dropped.
bcc optionalBlind-carbon-copy recipient(s): one e-mail or a JSON array. Invalid addresses are dropped.
attachments optionalFile attachment(s) by URL. One URL as a string, a JSON array of URLs, or a JSON object mapping display names to URLs to rename the attached files. Escape any colon in a URL as http#:// inside the parameter.
{mail:0:jane@example.org:Monthly report:The report is ready.:utf-8:news@example.org::::cc@example.org:bcc@example.org}
{mail:0:jane@example.org:Photos:See the attached images.:utf-8:news@example.org::::::["http#://example.org/a.png","http#://example.org/b.png"]}
{mail:0:jane@example.org:Newsletter:{view:24}:utf-8:news@example.org}
{mail:0:jane@example.org:Your question:See our note below.:utf-8:Helpdesk <help@example.org>:replies@example.org}
{mail:{qss:notify}:jane@example.org:Hello:Welcome aboard.:utf-8:noreply@example.org}
{mail:0:["anna@example.org","ben@example.org"]:Notice:Please read the update.:utf-8:news@example.org}
{mail:0:jane@example.org:Account ready:Your account is now set up.:utf-8:noreply@example.org}
{mail:0:7847785-435636-244355:Members update:News for members.:utf-8:news@example.org}