Smtp.Client
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
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
Name | Type |
---|---|
msg | SMTPMessage |
Returns
boolean
Example
Defined in
smtp.ts:47
IsSMTP
▸ IsSMTP(): SMTPResponse
IsSMTP checks if a host is running a SMTP server.
Returns
Example
Defined in
smtp.ts:28
SendMail
▸ SendMail(msg
): boolean
SendMail sends an email using the SMTP protocol.
Parameters
Name | Type |
---|---|
msg | SMTPMessage |
Returns
boolean
Example
Defined in
smtp.ts:67
Was this page helpful?