interface EmailWithTemplate {
    attachment?: AttachmentOptions;
    from?: string;
    template?: TemplateOptions;
    to: string | string[];
}

Properties

attachment?: AttachmentOptions

File attachment for the email (optional)

See

AttachmentOptions

from?: string

Sender name (optional) If not provided, the default sender name configured in TagoRUN will be used

Example

"My Application"
template?: TemplateOptions

TagoRUN Email Template configuration

Use this to send emails based on pre-defined templates in TagoRUN

See

TemplateOptions

Note

When using a template with an attachment, a $URL$ variable is automatically generated and can be used in the template to reference the attachment

to: string | string[]

Recipient email address(es)

Example

"client@example.com"
["client1@example.com", "client2@example.com"]