Skip to main content

Class: SMTPClient

smtp.SMTPClient SMTPClient is a minimal SMTP client for nuclei scripts. Example

Table of contents

Constructors

Methods

Constructors

constructor

new SMTPClient(): SMTPClient

Returns

SMTPClient

Defined in

smtp.ts:15

Methods

IsOpenRelay

IsOpenRelay(host, port, msg): boolean IsOpenRelay checks if a host is an open relay.

Parameters

Returns

boolean Example

Defined in

smtp.ts:43

IsSMTP

IsSMTP(host, port): IsSMTPResponse IsSMTP checks if a host is running a SMTP server.

Parameters

Returns

IsSMTPResponse Example

Defined in

smtp.ts:25

SendMail

SendMail(host, port, msg): boolean SendMail sends an email using the SMTP protocol.

Parameters

Returns

boolean Example

Defined in

smtp.ts:61