Skip to main content

Class: SMTPMessage

smtp.SMTPMessage SMTPMessage is a message to be sent over SMTP Example

Table of contents

Constructors

Methods

Constructors

constructor

new SMTPMessage(): SMTPMessage

Returns

SMTPMessage

Defined in

smtp.ts:89

Methods

Auth

Auth(username): SMTPMessage Auth when called authenticates using username and password before sending the message

Parameters

Returns

SMTPMessage Example

Defined in

smtp.ts:155

Body

Body(msg): SMTPMessage Body adds the message body to the message

Parameters

Returns

SMTPMessage Example

Defined in

smtp.ts:141

From

From(email): SMTPMessage From adds the from field to the message

Parameters

Returns

SMTPMessage Example

Defined in

smtp.ts:99

String

String(): string String returns the string representation of the message

Returns

string Example

Defined in

smtp.ts:173

Subject

Subject(sub): SMTPMessage Subject adds the subject field to the message

Parameters

Returns

SMTPMessage Example

Defined in

smtp.ts:127

To

To(email): SMTPMessage To adds the to field to the message

Parameters

Returns

SMTPMessage Example

Defined in

smtp.ts:113