mail

package
v0.0.0-...-be07d69 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailSender

type EmailSender interface {
	SendEmail(subject string, content string, to []string, attachFiles []string) error
}

func NewGmailSender

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

func NewQQSender

func NewQQSender(name string, fromEmailAddress string, fromEmailPassword string) EmailSender

type GmailSender

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

func (*GmailSender) SendEmail

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

type QQSender

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

func (*QQSender) SendEmail

func (sender *QQSender) SendEmail(subject string, content string, to []string, attachFiles []string) error

Jump to

Keyboard shortcuts

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