Methods
IsSMTP(host, port) → {IsSMTPResponse}
IsSMTP checks if a host is running a SMTP server.
Parameters:
Name | Type | Description |
---|---|---|
host | string | The host to check. |
port | int | The port to check. |
- Source
Throws:
- - The error encountered during the check.
- Type
- error
Returns:
- The response of the check.
- Type:
- IsSMTPResponse
Example
let m = require('nuclei/smtp');
let c = m.SMTPClient();
let response = c.IsSMTP('localhost', 25);