mail

package
v0.0.0-...-e45acd6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoginAuth

func LoginAuth(username, password string) smtp.Auth

Types

type EmailSender

type EmailSender interface {
	SendEmail(subject string, templatePath string, to []string, cc []string, bcc []string, attachFiles []string, data map[string]string) error
}

func NewGmailSender

func NewGmailSender(name string, fromEmail string, password string) EmailSender

type GmailSender

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

func (*GmailSender) SendEmail

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

Jump to

Keyboard shortcuts

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