email

package
v0.0.0-...-d37505e Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(flagEmailCreds string, e Email) (err error)

Send uses the specified credential file to send an email

Types

type Email

type Email struct {
	To      string    `json:"to"`
	From    string    `json:"from"`
	Date    time.Time `json:"date"`
	Subject string    `json:"subject"`
	Body    string    `json:"body"`
}

Email is the main structure with the email

func GetLatest

func GetLatest(flagEmailCreds string) (recvEmail Email, err error)

GetLatest returns the latest email

func (Email) String

func (e Email) String() string

Jump to

Keyboard shortcuts

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