mail

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: BSD-3-Clause Imports: 9 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(user, password, from, host, port, modeTLS string, insecureSkipVerify, disable bool)

Init initializes configuration

func SendEmail

func SendEmail(ctx context.Context, subject string, mailContent *bytes.Buffer, userMail string, isHTML bool) error

SendEmail is the core function to send an email

func SendMailAskResetToken

func SendMailAskResetToken(ctx context.Context, userMail, username, token, callbackUI, APIURL string) error

SendMailAskResetToken send mail to ask reset a user account.

func SendMailVerifyToken

func SendMailVerifyToken(ctx context.Context, userMail, username, token, callbackUI, APIURL string) error

SendMailVerifyToken send mail to verify user account.

func Status

Status verification of smtp configuration, returns OK or KO

Types

This section is empty.

Jump to

Keyboard shortcuts

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