mailer

package
v0.0.0-...-2ba808a Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Name  string
	Type  string
	Bytes []byte
}

Attachment information of attachment file that follow an email

type EmailData

type EmailData map[string]interface{}

EmailData for template

type Mailer

type Mailer interface {
	// SendWithTemplate sends email using pre-defined sendgrid's template
	SendWithTemplate(templateID string, recipients []Recipient, templateData EmailData, attachments ...Attachment) error
}

Mailer interface represents what an email service could do

type Recipient

type Recipient struct {
	Name  string
	Email string
}

Recipient holds information of recipient to send

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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