The highest tagged major version is
v2.
package
Version:
v1.2.4
Opens a new window with list of versions in this module.
Published: Jan 9, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
README
¶
配置文件如下
[email]
host="smtp.exmail.qq.com"
port=465
username="xxx@xxxxx.com"
password="XXXXXXXXX"
使用方式如下
gomail.SendEmail(
"wenzhenxi@sunmi.com", // 发送给谁
"service@sunmi.com", // 发送者的邮箱
"SUNMI", // 发送者的名称
"SUNMI激活邮件", // 邮件主题
"URL:xxxxxxxxx", // 邮件内容
)
Documentation
¶
func SendEmail(email, fromMail, formNmae, subject, text string) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.