email

package
v0.0.0-...-b8dab58 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SendAdminInviteEmailTemplateID       = "d-bca4f9a932ef418a923cbd2d90d2790b"
	SendGridCommentEmailTemplateID       = "d-af96adc0bfee455a8eff291f2bc621b0"
	SendGridAlertEmailTemplateID         = "d-efd755d329db413082dbdf1188b6846e"
	SendGridRequestAccessEmailTemplateID = "d-f059960009ba4a9fb5640e98db517eef"
	SessionsDeletedEmailTemplateID       = "d-d9e10ce22c774fc9850dd0b36ccde339"
	DigestEmailTemplateID                = "d-5bb29dabe298425ab9422b74636516bd"
	BillingNotificationTemplateID        = "d-9fa375187c114dc1a5b561e81fbee794"
	SessionExportTemplateID              = "d-b359ae6783bd4e3e95d168ffcee4728d"
	SendGridOutboundEmail                = "notifications@notify.highlight.io"
	SessionCommentMentionsAsmId          = 20950
	ErrorCommentMentionsAsmId            = 20994
)

Functions

func GetOptOutToken

func GetOptOutToken(adminID int, previous bool) string

func GetSubscriptionUrl

func GetSubscriptionUrl(adminId int, previous bool) string

func SendAlertEmail

func SendAlertEmail(ctx context.Context, MailClient *sendgrid.Client, email string, message string, alertType string, alertName string) error

func SendBillingNotificationEmail

func SendBillingNotificationEmail(ctx context.Context, mailClient *sendgrid.Client, workspaceId int, workspaceName *string, emailType EmailType, toEmail string, adminId int) error

func SendReactEmailAlert

func SendReactEmailAlert(ctx context.Context, MailClient *sendgrid.Client, email string, html string, subjectLine string) error

func SendSessionExportEmail

func SendSessionExportEmail(ctx context.Context, mailClient *sendgrid.Client, sessionSecureId, exportUrl, sessionUser, toEmail string) error

Types

type EmailType

type EmailType string
const (
	BillingHighlightTrial7Days    EmailType = "BillingHighlightTrial7Days"
	BillingHighlightTrialEnded    EmailType = "BillingHighlightTrialEnded"
	BillingStripeTrial7Days       EmailType = "BillingStripeTrial7Days"
	BillingStripeTrial3Days       EmailType = "BillingStripeTrial3Days"
	BillingSessionUsage80Percent  EmailType = "BillingSessionUsage80Percent"
	BillingSessionUsage100Percent EmailType = "BillingSessionUsage100Percent"
	BillingSessionOverage         EmailType = "BillingSessionOverage"
	BillingErrorsUsage80Percent   EmailType = "BillingErrorsUsage80Percent"
	BillingErrorsUsage100Percent  EmailType = "BillingErrorsUsage100Percent"
	BillingErrorsOverage          EmailType = "BillingErrorsOverage"
	BillingLogsUsage80Percent     EmailType = "BillingLogsUsage80Percent"
	BillingLogsUsage100Percent    EmailType = "BillingLogsUsage100Percent"
	BillingLogsOverage            EmailType = "BillingLogsOverage"
	BillingTracesUsage80Percent   EmailType = "BillingTracesUsage80Percent"
	BillingTracesUsage100Percent  EmailType = "BillingTracesUsage100Percent"
	BillingTracesOverage          EmailType = "BillingTracesOverage"
	BillingInvalidPayment         EmailType = "BillingInvalidPayment"
)

Jump to

Keyboard shortcuts

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