reporter

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

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

func SendAttachment(subject string, contents []byte, attachmentPtr *os.File) error

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

func SendPlainEmail(subject string, contents []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL