service

package
v0.0.0-...-46b66aa Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSendGridRejected = errors.New("sendgrid rejected email")

Functions

This section is empty.

Types

type MemoryEmailClient

type MemoryEmailClient struct {
}

func NewMemoryEmailClient

func NewMemoryEmailClient() MemoryEmailClient

func (MemoryEmailClient) Send

func (e MemoryEmailClient) Send(to, toEmail, subject, plainText, htmlText string) error

func (MemoryEmailClient) SendUsingTemplate

func (e MemoryEmailClient) SendUsingTemplate(to, toEmail, subject, templateID string, templateData map[string]string) error

type SendGridEmailClient

type SendGridEmailClient struct {
	// contains filtered or unexported fields
}

func NewSendGridEmailClient

func NewSendGridEmailClient(sgKey, sgFromName, sgFromEmail string) SendGridEmailClient

func (SendGridEmailClient) Send

func (e SendGridEmailClient) Send(to, toEmail, subject, plainText, htmlText string) error

func (SendGridEmailClient) SendUsingTemplate

func (e SendGridEmailClient) SendUsingTemplate(to, toEmail, subject, templateID string, templateData map[string]string) error

Jump to

Keyboard shortcuts

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