email_sender

package
v0.0.0-...-7edcfce Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendHtml

func SendHtml(ctx op_context.Context, client EmailSender, to string, subject string, content string) error

func SendHtmlAndText

func SendHtmlAndText(ctx op_context.Context, client EmailSender, to string, subject string, html string, text string) error

func SendTemplate

func SendTemplate(ctx op_context.Context, client EmailSender, templatesPath string, templateName string, to string, vals TemplateVals, language ...string) error

func SendText

func SendText(ctx op_context.Context, client EmailSender, to string, subject string, content string) error

Types

type EmailContent

type EmailContent struct {
	ContentType string
	Content     string
}

type EmailSender

type EmailSender interface {
	Send(ctx op_context.Context, to string, subject string, content ...EmailContent) error
}

type TemplateVals

type TemplateVals = map[string]string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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