Skip to content

SEND MAIL 🟑 BETA

SEND MAIL sends an email message.

Where BASIC scripting sits in the Developer guide

Syntax

SEND MAIL "to@x.com", "subject", "body", "attachments"

Example

SEND MAIL "to@example.com", "Subject", "Body", ""

What it does

SEND MAIL takes four positional arguments: recipient, subject, body and attachments.

BEGIN MAIL / END MAIL

The runtime also recognises a block form for longer messages. Its exact syntax is defined by the mail keyword registration; the closed reference publishes only the four-argument call above.

Limits

  • Registered with positional arguments only β€” the signature shown is the exact form; named arguments are not part of the keyword.
  • Available only when the mail Cargo feature is enabled (botserver/src/basic/keywords/mod.rs).
  • There is no SEND MAIL TO … SUBJECT … BODY … named-argument form (keyword_reference.rs).