Skip to main content

Class: Client

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

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Client(host, port): Client

Parameters

Returns

Client

Defined in

smtp.ts:15

Properties

host

host: string

Defined in

smtp.ts:15

port

port: string

Defined in

smtp.ts:15

Methods

IsOpenRelay

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

Parameters

Returns

boolean Example

Defined in

smtp.ts:47

IsSMTP

IsSMTP(): SMTPResponse IsSMTP checks if a host is running a SMTP server.

Returns

SMTPResponse Example

Defined in

smtp.ts:28

SendMail

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

Parameters

Returns

boolean Example

Defined in

smtp.ts:67