mail

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host = ""
	Port = 465
	Pass = ""
)

Functions

func Send

func Send(o *Options) error

SeSend 根据配置发送邮件

Types

type Options

type Options struct {
	MailUser   string   // 发件人
	MailTo     string   // 收件人 多个用,分割
	Subject    string   // 邮件主题
	Body       string   // 邮件内容
	MailAttach []string // 附件地址
}

func NewMail

func NewMail(send, to, subject, body string, attach []string) *Options

NewMail 返回新的邮件配置

Jump to

Keyboard shortcuts

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