Options
All
  • Public
  • Public/Protected
  • All
Menu

Module emailer

Send emails.

Variables

Const emailAddress

emailAddress: string = ...

Email address environment variable.

Functions

sendEmail

  • sendEmail(emailTo: string, subject: string, html: string, text?: string, tryNum?: number): Promise<void>
  • Send an email.

    Parameters

    • emailTo: string

      The destination address.

    • subject: string

      The email subject line.

    • html: string

      The email body HTML.

    • text: string = ""

      The email body text.

    • tryNum: number = 1

      The number of times the email has tried to send.

    Returns Promise<void>

sendFormattedEmail

  • sendFormattedEmail(emailTo: string, subject: string, emailName: string, options: any): Promise<void>
  • Send an email and render values into it.

    Parameters

    • emailTo: string

      The destination address.

    • subject: string

      The email subject line.

    • emailName: string

      The name of the email.

    • options: any

      The values to be rendered into the email.

    Returns Promise<void>

Generated using TypeDoc