email

package
v0.4.4-gz8 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GmailSuffix = "@gmail.com"
	GmailType   = "google"
	GmailHost   = "smtp.gmail.com"
	GmailPort   = 587
	GmailIsSSL  = false
)
View Source
const (
	NetSuffix = "@163.com"
	NetType   = "163"
	NetHost   = "smtp.163.com"
	NetPort   = 465
	NetIsSSL  = true
)
View Source
const (
	QqSuffix = "@qq.com"
	QqType   = "qq"
	QqHost   = "smtp.qq.com"
	QqPort   = 587
	QqIsSSL  = false
)

Variables

This section is empty.

Functions

func DoSend

func DoSend(to, subject, body, from, nickname, secret string) (err error)

DoSend 发送邮件

func SendFromKgSender

func SendFromKgSender(subject, body, to string) error

SendFromKgSender 发送给配置的收件人

func SendKgEmail

func SendKgEmail(to, from, subject, body string) error

func SendToKgSender

func SendToKgSender(subject, body string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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