Skip to main content

Email

Email lets Lightflare send outbound messages through a configured mail server.

Tools

ToolPurpose
send-emailSend a plain text email message to one recipient.

send-email Inputs

InputRequiredDescription
toyesRecipient address.
subjectyesSubject line.
textyesPlain text message body.
fromnoSender address, when the mail server allows the sender to be overridden.

Required Properties

VariableDescription
LIGHTFLARE_TOOLS_EMAIL_ENABLEDSet to true.
LIGHTFLARE_TOOLS_EMAIL_HOSTMail server host.
LIGHTFLARE_TOOLS_EMAIL_PORTMail server port.

Optional Properties

VariableDefaultDescription
LIGHTFLARE_TOOLS_EMAIL_USERNAMEunsetUsername for authenticated mail servers.
LIGHTFLARE_TOOLS_EMAIL_PASSWORDunsetPassword for authenticated mail servers.
LIGHTFLARE_TOOLS_EMAIL_FROMunsetDefault sender address.
LIGHTFLARE_TOOLS_EMAIL_PROPERTIES_<KEY>{}Additional JavaMail properties, such as transport security settings.

When Email is enabled, send-email is available to the agent. Use mail server credentials and sender restrictions to control what the tool can send.