Smtp.SMTPClient
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
Defined in
smtp.ts:15
Methods
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:43
IsSMTP
▸ IsSMTP(host
, port
): IsSMTPResponse
IsSMTP checks if a host is running a SMTP server.
Parameters
Name | Type |
---|---|
host | string |
port | number |
Returns
Example
Defined in
smtp.ts:25
SendMail
▸ 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
Defined in
smtp.ts:61
Was this page helpful?