email

package
v0.0.0-...-d8b2627 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MailingEnabled is only true, if a mailserver is given in config. If not,
	// Gafaspot is not able to send mails anyway.
	MailingEnabled bool
)

Functions

func InitMailing

func InitMailing(l logging.Logger, config util.GafaspotConfig)

InitMailing reads the email paramters from config and stores them as package variables. Further it prepares the mail templates.

func SendBeginReservationMail

func SendBeginReservationMail(recipient string, info util.ReservationCreds)

SendBeginReservationMail sends an e-mail to inform a user about the beginning of his reservation. recipient has to be the user's e-mail address.

func SendEndReservationMail

func SendEndReservationMail(recipient string, info util.ReservationCreds)

SendEndReservationMail sends an e-mail to inform a user about the end of his reservation. recipient has to be the user's e-mail address. As at a reservation's end there is no point in showing credentials, the info.Creds attribute is ignored and can be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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