mailer

package
v0.0.0-...-8f3a5af Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailMessage

type MailMessage struct {
	To      []string
	Subject string
	Body    []byte
	IsHtml  bool
}

type MailService

type MailService interface {
	Send(msg MailMessage) error
}

func NewConsoleMailService

func NewConsoleMailService(from string) MailService

func NewSMTPMailService

func NewSMTPMailService(cfg SMTPConfig) MailService

type SMTPConfig

type SMTPConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	From     string
}

Jump to

Keyboard shortcuts

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