mail

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(ctx context.Context, to []string, cc []string, bcc []string, subject string, body string, file ...string) error

func SendTo

func SendTo(ctx context.Context, to []string, subject string, body string, file ...string) error

func SetSender

func SetSender(sender *SmtpSender)

Types

type SmtpSender

type SmtpSender struct {
	SmtpHost string
	Port     int
	FromName string
	FromMail string
	UserName string
	AuthCode string
}

func (*SmtpSender) Send

func (o *SmtpSender) Send(ctx context.Context, to []string, cc []string, bcc []string, subject string, body string, file ...string) error

func (*SmtpSender) SendTo

func (o *SmtpSender) SendTo(ctx context.Context, to []string, subject string, body string, file ...string) error

Jump to

Keyboard shortcuts

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