package utils import ( "fmt" "github.com/yauthdev/yauth/server/constants" "github.com/yauthdev/yauth/server/email" ) // SendVerificationMail to send verification email func SendVerificationMail(toEmail, token string) error { sender := email.NewSender() // The receiver needs to be in slice as the receive supports multiple receiver Receiver := []string{toEmail} Subject := "Please verify your email" message := fmt.Sprintf(`