mail

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AliSendMail

func AliSendMail(to, fromUser, subject, body, mailType string, options ...string) error

SendMail need following config in config.json:

"email": {
		"account": "xxx@xxx.com",
		"pwd": "xxx",
		"host": "smtpdm.xxx.com:25"
  },

func AwsSendMail

func AwsSendMail(to, fromUser, subject, body, mailType string, options ...string) error

AwsSendMail need config:

"email": {
		"account": "xxx@xxx.com",
		"accessKey": "xxx",
		"accessSecret": "xxx",
		"region": "xxx"
  },

func FetchInvalidEmails

func FetchInvalidEmails() (rs []string, err error)

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

LoginAuth login auth for mail send

func SendMail

func SendMail(to, fromUser, subject, body, mailType string, options ...string) error

SendMail need config:

"email": {
		"cloud": "", // aliyun/aws
		"account": "xxx@xxx.com",
		"accessKey": "xxx",
		"accessSecret": "xxx",
		"region": "xxx",
		"pwd": "xxx",
		"host": "smtpdm.xxx.com:25"
  },

Types

This section is empty.

Jump to

Keyboard shortcuts

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