Documentation ¶
Index ¶
- func EmailVerification(token string, c *gin.Context) (int, error)
- func InitGomail() *gomail.Dialer
- func SendEmailFromAdmin(to string, subject string, body string, bodyHTML string) error
- func SendEmailVerification(to string, token string) error
- func SendTestEmail() error
- func SendVerificationToUser(user *models.User, newEmail string) (int, error)
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmailVerification ¶
EmailVerification verifies the token used for email verification
func SendEmailFromAdmin ¶
SendEmailFromAdmin : send an email from system with email address in config/email.go
func SendEmailVerification ¶
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
Types ¶
Click to show internal directories.
Click to hide internal directories.