emailing

package
v0.0.0-...-087ca59 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 5 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 EmailMessage

type EmailMessage struct {
	From       *string
	To         string
	Subject    string
	Body       string
	IsBodyHtml bool
}

type EmailOptions

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

type EmailSender

type EmailSender interface {
	Send(msg *EmailMessage) error
}

type GoMailSender

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

func NewGoMailSender

func NewGoMailSender(opts *EmailOptions) *GoMailSender

func (*GoMailSender) Send

func (gs *GoMailSender) Send(msg *EmailMessage) error

Jump to

Keyboard shortcuts

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