SMTPClient
.IsOpenRelay(host, port, msg)
⇒ boolean
.IsSMTP(host, port)
⇒ IsSMTPResponse
.SendMail(host, port, msg)
⇒ boolean
SMTPMessage
.Auth(username, password)
⇒ SMTPMessage
.Body(msg)
⇒ SMTPMessage
.From(email)
⇒ SMTPMessage
.String()
⇒ string
.Subject(sub)
⇒ SMTPMessage
.To(email)
⇒ SMTPMessage
smtp
SMTPClient
.IsOpenRelay(host, port, msg)
⇒ boolean
.IsSMTP(host, port)
⇒ IsSMTPResponse
.SendMail(host, port, msg)
⇒ boolean
boolean
SMTPClient
boolean
- - Whether the host is an open relay or not.error
- The error encountered during the check.Param | Type | Description |
---|---|---|
host | string | The host to check. |
port | number | The port to check. |
msg | string | The message to send. |
IsSMTPResponse
SMTPClient
IsSMTPResponse
- - The response from the SMTP server.error
- The error encountered during the check.Param | Type | Description |
---|---|---|
host | string | The host to check. |
port | number | The port to check. |
boolean
SMTPClient
boolean
- - Whether the email was sent successfully or not.error
- The error encountered during the email sending.Param | Type | Description |
---|---|---|
host | string | The host to send the email to. |
port | number | The port to send the email to. |
msg | string | The message to send. |
smtp
SMTPMessage
.Auth(username, password)
⇒ SMTPMessage
.Body(msg)
⇒ SMTPMessage
.From(email)
⇒ SMTPMessage
.String()
⇒ string
.Subject(sub)
⇒ SMTPMessage
.To(email)
⇒ SMTPMessage
SMTPMessage
SMTPMessage
SMTPMessage
- - The SMTPMessage object after authentication.
Param | Type | Description |
---|---|---|
username | string | The username for authentication. |
password | string | The password for authentication. |
SMTPMessage
SMTPMessage
SMTPMessage
- - The SMTPMessage object after adding the body.
Param | Type | Description |
---|---|---|
msg | string | The message body to add. |
SMTPMessage
SMTPMessage
SMTPMessage
- - The SMTPMessage object after adding the from field.
Param | Type | Description |
---|---|---|
string | The email to add to the from field. |
string
SMTPMessage
string
- - The string representation of the message.SMTPMessage
SMTPMessage
SMTPMessage
- - The SMTPMessage object after adding the subject.
Param | Type | Description |
---|---|---|
sub | string | The subject to add. |
SMTPMessage
SMTPMessage
SMTPMessage
- - The SMTPMessage object after adding the to field.
Param | Type | Description |
---|---|---|
string | The email to add to the to field. |