Core\Mail
Sends email. send gives one message to the mail server that a [mail.<name>] block of nvs.toml names. The program writes the block's name. The host, the port, the password and the sender address stay in the block.
Members
2 members.
| Member | Signature |
|---|---|
send | send(string $endpoint, array<string|Core\Mail\Address> $to, string $subject, string|Core\Html\Markup $body, { cc?: array<string|Core\Mail\Address>, bcc?: array<string|Core\Mail\Address>, replyTo?: string|Core\Mail\Address, text?: string, fromName?: string, attachments?: array<Core\Mail\Attachment>, inReplyTo?: string, references?: array<string>, unsubscribe?: string, autoSubmitted?: bool, bounceTag?: string }): string |
preview | preview(string|Core\Html\Markup $body, { text?: string, attachments?: array<Core\Mail\Attachment> }): Core\Mail\Preview |
