Example
SMTPMessage
SMTPMessage
username
): SMTPMessage
Auth when called authenticates using username and password before sending the message
Name | Type |
---|---|
username | string |
SMTPMessage
Example
msg
): SMTPMessage
Body adds the message body to the message
Name | Type |
---|---|
msg | Uint8Array |
SMTPMessage
Example
email
): SMTPMessage
From adds the from field to the message
Name | Type |
---|---|
email | string |
SMTPMessage
Example
string
String returns the string representation of the message
string
Example
sub
): SMTPMessage
Subject adds the subject field to the message
Name | Type |
---|---|
sub | string |
SMTPMessage
Example
email
): SMTPMessage
To adds the to field to the message
Name | Type |
---|---|
email | string |
SMTPMessage
Example