Email: {
    from: EmailAddress;
    to: EmailAddress[] | string;
    cc?: EmailAddress[] | string;
    bcc?: EmailAddress[] | string;
    subject: string;
    text?: string;
    html?: string;
}

Represents an email. Is only considered valid when all required fields are provided and either Email.text or Email.html have a value.

Type declaration

  • from: EmailAddress

    Sender of the email

  • to: EmailAddress[] | string

    Receivers of the email

  • Optionalcc?: EmailAddress[] | string

    Other receivers of the email

  • Optionalbcc?: EmailAddress[] | string

    Blind receivers of the email

  • subject: string

    Subject of the email

  • Optionaltext?: string

    Contents of the email as text

  • Optionalhtml?: string

    Contents of the email as html