email

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2016 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Copyright © 2016 National Data Service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailHelper

type EmailHelper struct {
	SupportEmail string
	// contains filtered or unexported fields
}

func NewEmailHelper

func NewEmailHelper(server string, port int, supportEmail string, origin string) (*EmailHelper, error)

func (*EmailHelper) SendNewAccountEmail

func (s *EmailHelper) SendNewAccountEmail(account *api.Account, approveUrl string, denyUrl string) error

Send new account request email

func (*EmailHelper) SendRecoveryEmail

func (s *EmailHelper) SendRecoveryEmail(name string, email string, recoveryUrl string, unapproved bool) error

Send password recovery email

func (*EmailHelper) SendStatusEmail

func (s *EmailHelper) SendStatusEmail(name string, address string, url string, approved bool) error

Send approve/deny status email

func (*EmailHelper) SendSupportEmail

func (s *EmailHelper) SendSupportEmail(name string, email string, messageType string, message string, anon bool) error

Send support email

func (*EmailHelper) SendVerificationEmail

func (s *EmailHelper) SendVerificationEmail(name string, address string, url string) error

Send email address verification message

func (*EmailHelper) SendVerifiedEmail

func (s *EmailHelper) SendVerifiedEmail(name string, address string) error

Send email address verified

Jump to

Keyboard shortcuts

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