package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Apr 7, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func AliSendMail(to, fromUser, subject, body, mailType string) error
-
func AwsSendMail(to, fromUser, subject, body, mailType string) error
-
func FetchInvalidEmails() (rs []string, err error)
-
func LoginAuth(username, password string) smtp.Auth
-
func SendMail(to, fromUser, subject, body, mailType string) error
func AliSendMail(to, fromUser, subject, body, mailType string) error
SendMail need following config in config.json:
"email": {
"account": "xxx@xxx.com",
"pwd": "xxx",
"host": "smtpdm.xxx.com:25"
},
func AwsSendMail(to, fromUser, subject, body, mailType string) error
AwsSendMail need config:
"email": {
"account": "xxx@xxx.com",
"accessKey": "xxx",
"accessSecret": "xxx",
"region": "xxx"
},
LoginAuth login auth for mail send
func SendMail(to, fromUser, subject, body, mailType 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"
},
Source Files
¶
Click to show internal directories.
Click to hide internal directories.