mailer

package
v0.0.0-...-7c9259c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GmailSender

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

func (*GmailSender) SendEmail

func (sender *GmailSender) SendEmail(subject string, content string, to []string, cc []string, bcc []string, attachFiles []string) error

SendEmail 发送邮件接口 subject 主题、content 内容、to 发给谁、cc 抄送给谁、bcc 密件抄送、attachFiles 附件

type Mailer

type Mailer interface {
	// SendEmail 发送邮件接口
	// subject 主题、content 内容、to 发给谁、cc 抄送给谁、bcc 密件抄送、attachFiles 附件
	SendEmail(subject string, content string, to []string, cc []string, bcc []string, attachFiles []string) error
}

func NewGmailSender

func NewGmailSender(name string, fromEmailAddress string, fromEmailPassword string) Mailer

Jump to

Keyboard shortcuts

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