email

package
v0.0.0-...-5b9e52f Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailSender

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

func NewMailSender

func NewMailSender(cfg MailSenderConfig, logger *logrus.Logger) *MailSender

func (*MailSender) SendEmail

func (s *MailSender) SendEmail(ctx context.Context, email string, subject string, emailBody, altBody string) error

type MailSenderConfig

type MailSenderConfig struct {
	Password     string `yaml:"email_password" env:"EMAIL_PASSWORD"`
	Port         int    `yaml:"email_port" env:"EMAIL_PORT"`
	Host         string `yaml:"email_host" env:"EMAIL_HOST"`
	EmailAddress string `yaml:"email_address" env:"EMAIL_ADDRESS"`
	EmailLogin   string `yaml:"email_login" env:"EMAIl_LOGIN"`
	EnableTLS    bool   `yaml:"enable_TLS" env:"ENABLE_TLS"`
}

Jump to

Keyboard shortcuts

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