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