Documentation ¶
Index ¶
Constants ¶
View Source
const EMAIL_PORT = "587"
View Source
const EMAIL_SERVER = "smtp.gmail.com"
View Source
const MAX_EMAIL_TIMEOUT_ATTEMPTS = 5
View Source
const SUCCESSIVE_EMAIL_ATTEMPTS_DELAY = 5
Variables ¶
This section is empty.
Functions ¶
func SendAttachment ¶
SendAttachment will send the content of the byte array as the body of an email along with the provided subject. The device ID is automatically added to the email subject line in order to help differentiate emails from multiple devices to the same address. The sender and receiver are defined by NewReporter() which in turn can be defined via config.json file.
func SendPlainEmail ¶
SendPlainEmail will send the content of the byte array as the body of an email along with the provided subject. The default sender and receiver are defined by NewReporter() which in turn can be defined via a config.json file. A sample is provided in the config package folder.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.