Home Reference Source
public class | source

EmailSender

An email sender sends an email

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Filters to validate address with before sending emails to.

Method Summary

Public Methods
public

async send(to: string, from: string, subject: string, body: string)

Send an email.

public abstract

async sendImplementation(to: string, from: string, subject: string, body: string)

Public Constructors

public constructor() source

Public Members

public filters: Array<EmailFilter> source

Filters to validate address with before sending emails to.

Public Methods

public async send(to: string, from: string, subject: string, body: string) source

Send an email. This performs various checks and calls sendImplementation

Params:

NameTypeAttributeDescription
to string

where to send email

from string

reply address

subject string

subject of email

body string

content of email

public abstract async sendImplementation(to: string, from: string, subject: string, body: string) source

Params:

NameTypeAttributeDescription
to string

where to send email

from string

reply address

subject string

subject of email

body string

content of email