package
Version:
v2.1.14
Opens a new window with list of versions in this module.
Published: Jun 15, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
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(toEmail, fromMail, fromName, subject, text string) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.