Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailVerification

func EmailVerification(token string, c *gin.Context) (int, error)

EmailVerification verifies the token used for email verification

func InitGomail

func InitGomail() *gomail.Dialer

InitGomail : init the gomail dialer

func SendEmailFromAdmin

func SendEmailFromAdmin(to string, subject string, body string, bodyHTML string) error

SendEmailFromAdmin : send an email from system with email address in config/email.go

func SendEmailVerification

func SendEmailVerification(to string, token string) error

SendEmailVerification sends an email verification token via email.

func SendTestEmail

func SendTestEmail() error

SendTestEmail : function to send a test email to email address in config/email.go

func SendVerificationToUser

func SendVerificationToUser(user *models.User, newEmail string) (int, error)

SendVerificationToUser sends an email verification token to user.

Types

type Error

type Error error

Error type