mail

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

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InviteMailTemplate

func InviteMailTemplate(name string, link string, organisation string, language db.UserLanguage) (string, error)

func PasswordResetMailTemplate

func PasswordResetMailTemplate(name string, link string, language db.UserLanguage) (string, error)

Types

type Config

type Config struct {
	Host     string
	Port     int
	Username string
	Password string
}

type Mailer

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

func NewClient

func NewClient() Mailer

func (Mailer) Send

func (m Mailer) Send(to []string, subject string, message string) error

func (Mailer) SendInvite

func (m Mailer) SendInvite(to string, name string, organisationName string, lang db.UserLanguage, token string) error

func (Mailer) SendPasswordReset

func (m Mailer) SendPasswordReset(to string, name string, lang db.UserLanguage, token string) error

Jump to

Keyboard shortcuts

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