email

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

email

email

email

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MailingListSubscribe

func MailingListSubscribe(rData *pages.RequestData, userRecord *datastore.UserRecord) error

func MailingListUpdate

func MailingListUpdate(rData *pages.RequestData, userRecord *datastore.UserRecord, updateType string) error

func Send

func Send(rData *pages.RequestData, toName string, toAddress string, msg *Message) error

Types

type Groupings

type Groupings struct {
	ID     int      `json:"id"`
	Groups []string `json:"groups"`
}

type MailchimpAPIError

type MailchimpAPIError struct {
	Status string `json:"status"`
	Code   int    `json:"code"`
	Name   string `json:"name"`
	Err    string `json:"error"`
}

type MailchimpSuccessResponse

type MailchimpSuccessResponse struct {
	Email       string `json:"email"`
	EmailId     string `json:"euid"`
	ListEmailId string `json:"leid"`
}

type MergeVarsSubscribe

type MergeVarsSubscribe struct {
	FirstName string      `json:"FNAME"`
	LastName  string      `json:"LNAME"`
	NewEmail  string      `json:"new-email"`
	Groupings []Groupings `json:"groupings"`
}

type MergeVarsUpdateEmail

type MergeVarsUpdateEmail struct {
	NewEmail string `json:"new-email"`
}

type MergeVarsUpdateName

type MergeVarsUpdateName struct {
	FirstName string `json:"FNAME"`
	LastName  string `json:"LNAME"`
}

type Message

type Message struct {
	Subject string
	Body    string
}

func GetEmailActivationMessage

func GetEmailActivationMessage(locale string, url string) *Message

func GetEmailChangeEmailAddressMessage

func GetEmailChangeEmailAddressMessage(locale string, url string) *Message

func GetEmailChangePasswordMessage

func GetEmailChangePasswordMessage(locale string, url string) *Message

Jump to

Keyboard shortcuts

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