emailsending

package
v0.0.0-...-4780336 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpClient *httpclient.ClientConfig

	GlobalTemplateInfos = map[string]string{}
)

Functions

func GenerateEmailContent

func GenerateEmailContent(
	templateDef messagingTypes.EmailTemplate,
	lang string,
	payload map[string]string,
) (string, string, error)

func InitMessageSendingVariables

func InitMessageSendingVariables(
	newClientConfig *httpclient.ClientConfig,
	globalTemplateInfos map[string]string,
	mdb *messageDB.MessagingDBService,
)

func QueueEmailByTemplate

func QueueEmailByTemplate(
	instanceID string,
	to []string,
	messageType string,
	studyKey string,
	lang string,
	payload map[string]string,
	useLowPrio bool,
) error

func SendInstantEmailByTemplate

func SendInstantEmailByTemplate(
	instanceID string,
	to []string,
	messageType string,
	studyKey string,
	lang string,
	payload map[string]string,
	useLowPrio bool,
	expiresAt int64,
) error

func SendOutgoingEmail

func SendOutgoingEmail(
	outgoing *messagingTypes.OutgoingEmail,
) error

Types

type SendEmailReq

type SendEmailReq struct {
	To              []string                        `json:"to"`
	Subject         string                          `json:"subject"`
	Content         string                          `json:"content"`
	HighPrio        bool                            `json:"highPrio"`
	HeaderOverrides *messagingTypes.HeaderOverrides `json:"headerOverrides"`
}

Jump to

Keyboard shortcuts

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