email

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmailTemplate string = `` /* 1234-byte string literal not displayed */
View Source
var MimeHeaders = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"

Functions

This section is empty.

Types

type EmailConfiguration

type EmailConfiguration struct {
	Log           *zap.Logger
	From          string
	Password      string
	To            []string
	Subject       string
	HtmlBody      string
	SMTPHost      string
	SMTPPort      int
	MaxRetries    int
	SleepInterval time.Duration
}

func New

func New(from string, password string, to []string, subject string, htmlBody string) EmailConfiguration

func (*EmailConfiguration) SendEmail

func (e *EmailConfiguration) SendEmail(ctx context.Context) error

Jump to

Keyboard shortcuts

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