notification

package
v0.0.0-...-76d5e32 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutlookSMTPAUTH

func OutlookSMTPAUTH(username, password string) smtp.Auth

OutlookSMTPAUTH returns an Auth that implements the LOGIN authentication mechanism as defined in RFC 4616.

Types

type EmailClient

type EmailClient struct {
	SenderEmail   string
	SenderPW      string
	ReceiverEmail string
	ServerHost    string
	ServerPort    int
}

EmailClient contains email configuration data for SendEmail

func NewEmailClient

func NewEmailClient(SenderEmail string, SenderPW string, ReceiverEmail string, ServerHost string, ServerPort int) *EmailClient

NewEmailClient create a new EmailClient

func (*EmailClient) SendEmail

func (c *EmailClient) SendEmail(s string) error

SendEmail use EmailConfig to send string content

Jump to

Keyboard shortcuts

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