huemail

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendToMail

func SendToMail(user, sendUserName, password, host, to, subject, body, mailtype string) error

发送邮件 to:目标邮箱。多个用 ; 隔开

Types

type Attachment

type Attachment struct {
	// contains filtered or unexported fields
}

type Mail

type Mail interface {
	Auth()
	Send(message Message) error
}

Mail define email interface, and implemented auth and send method

type Message

type Message struct {
	// contains filtered or unexported fields
}

type SendMail

type SendMail struct {
	// contains filtered or unexported fields
}

func (*SendMail) Auth

func (mail *SendMail) Auth()

Auth 验证smtp权限

func (SendMail) Send

func (mail SendMail) Send(message Message) error

Send 发送邮件方法

Jump to

Keyboard shortcuts

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