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
| Name | Type |
|---|---|
host | string |
port | string |
Returns
Client
Defined in
smtp.ts:15Properties
host
• host:string
Defined in
smtp.ts:15port
• port:string
Defined in
smtp.ts:15Methods
IsOpenRelay
▸ IsOpenRelay(msg): boolean
IsOpenRelay checks if a host is an open relay.
Parameters
| Name | Type |
|---|---|
msg | SMTPMessage |
Returns
boolean
Example
Defined in
smtp.ts:47IsSMTP
▸ IsSMTP():SMTPResponse
IsSMTP checks if a host is running a SMTP server.
Returns
SMTPResponse
Example
Defined in
smtp.ts:28SendMail
▸ SendMail(msg): boolean
SendMail sends an email using the SMTP protocol.
Parameters
| Name | Type |
|---|---|
msg | SMTPMessage |
Returns
boolean
Example