sendMail

fun sendMail(to: String, subject: String, body: String, sessionId: String, clientIP: String = "unknown"): MailBridge.MailResult

Attempts to send an email on behalf of the AI model.

Return

A MailResult indicating success or failure with a reason.

Parameters

to

Recipient email address.

subject

Email subject.

body

Email body (plain text).

sessionId

The streaming session ID for per-session rate limiting.

clientIP

The IP address of the requesting client (for audit logging).