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.
Click to show internal directories.
Click to hide internal directories.