mail

package
v0.0.0-...-1ea91d1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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 EmailSender

type EmailSender interface {
	SendEmail(
		subject string,
		text string,
		to []string,
		cc []string,
		bcc []string,
		attachments []string,
	) error
	SendWelcomeEmail(NewUserInfo) error
	SendPasswordResetEmail(ResetPasswordInfo) error
}

func NewEmail

func NewEmail() EmailSender

type Emailer

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

func (*Emailer) SendEmail

func (emailer *Emailer) SendEmail(
	subject string,
	text string,
	to []string,
	cc []string,
	bcc []string,
	attachments []string,
) error

func (*Emailer) SendPasswordResetEmail

func (emailer *Emailer) SendPasswordResetEmail(resetInfo ResetPasswordInfo) error

func (*Emailer) SendWelcomeEmail

func (emailer *Emailer) SendWelcomeEmail(userInfo NewUserInfo) error

type NewUserInfo

type NewUserInfo struct {
	UserName string
	Email    string
	OtpCode  string
}

type ResetPasswordInfo

type ResetPasswordInfo struct {
	UserName string
	Email    string
	OtpCode  string
}

Jump to

Keyboard shortcuts

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