Class MailService

Injectable service responsible for sending emails using the MailerService.

Name

MailService

Hierarchy

  • MailService

Constructors

Properties

Methods

Constructors

Properties

mailerService: MailerService

The MailerService used to send emails.

Methods

  • Asynchronously sends an email to the specified recipient using the configured MailerService.

    Parameters

    • to: string

      The recipient's email address.

    • subject: string

      The subject of the email.

    • template: string

      The name of the email template to be used.

    • Optional context: object

      Optional data object to be used as the context for the email template.

    Returns Promise<void>

    A Promise that resolves when the email is sent.

    Async

    Function

Generated using TypeDoc