fsmtp

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

邮箱相关.

Index

Examples

Constants

View Source
const QQ_MAIL_SERVER string = "smtp.qq.com:587"

QQ邮箱服务器.

Variables

This section is empty.

Functions

func SendMail

func SendMail(
	server string,
	account string,
	password string,
	to string,
	subject string,
	content string) ftype.Error

发送邮件

Example
var e error
SendMail(
	QQ_MAIL_SERVER,
	"iceyee.studio@qq.com",
	"ddaulujsexzlbidd",
	"farmer.person@qq.com",
	"测试-标题",
	"测试-内容.",
)
fassert.CheckError(e)
return
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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