email

package
v0.0.0-...-4648e5f Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email interface {
	SendInitConfirmation(request *models.VerifyRequest) error
	SendVerificationMessage(request *models.VerifyRequest) error
	SendCompletionMessage(request *models.VerifyRequest) error
	SendFailedVerificationMessage(request *models.VerifyRequest) error
}

func NewEmail

func NewEmail(cfg *config.Config) Email

type EmailService

type EmailService struct {
	SMTPServer string
	Port       int
	Username   string
	Password   string
	From       string
	Messages   config.Messages
	Enabled    bool
}

func (*EmailService) SendCompletionMessage

func (s *EmailService) SendCompletionMessage(request *models.VerifyRequest) error

func (*EmailService) SendFailedVerificationMessage

func (s *EmailService) SendFailedVerificationMessage(request *models.VerifyRequest) error

func (*EmailService) SendInitConfirmation

func (s *EmailService) SendInitConfirmation(request *models.VerifyRequest) error

func (*EmailService) SendVerificationMessage

func (s *EmailService) SendVerificationMessage(request *models.VerifyRequest) error

Jump to

Keyboard shortcuts

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