package
Version:
v0.0.0-...-4a78be1
Opens a new window with list of versions in this module.
Published: Jan 18, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
email
请求URL
http://ip:port/sender/mail
请求方式:
请求头
参数名 |
是否必须 |
类型 |
说明 |
Content-Type |
是 |
string |
请求类型:application/x-www-form-urlencoded||application/json |
请求参数
参数名 |
是否必须 |
类型 |
说明 |
from |
否 |
string |
发件人,必须xxx@staff.qkagame.com格式 |
to |
是 |
string |
收件人地址,多个收件人用(,)分隔 |
subject |
是 |
string |
邮件标题 |
content |
是 |
string |
邮件内容 |
content_type |
否 |
string |
填 html ortxt 默认txt |
Documentation
¶
LoginAuth return a implemented by smtp.Auth of LOGIN mechanism
SMTP smtp auth info
func New(address, username, password, authtype string) *SMTP
New return *SMTP
SendMail sent the email with args
Source Files
¶
Click to show internal directories.
Click to hide internal directories.