email

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2017 License: MIT Imports: 16 Imported by: 0

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

Jump to

Keyboard shortcuts

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