mailer

package
v0.0.0-...-139a114 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FromName = "GopherSocial"

	UserWelcomeTemplate = "user_invitation.tmpl"
)

Variables

Functions

This section is empty.

Types

type Client

type Client interface {
	Send(templateFile, username, email string, data any, isSandbox bool) (int, error)
}

type SendGridMailer

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

func NewSendgrid

func NewSendgrid(apiKey, fromEmail string) *SendGridMailer

func (*SendGridMailer) Send

func (m *SendGridMailer) Send(templateFile, username, email string, data any, isSandbox bool) (int, error)

Jump to

Keyboard shortcuts

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