mandrill

package
v0.0.0-...-d60bda4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const PlatformID = "mandrill"

Variables

This section is empty.

Functions

func NewMandrillClientWithAPIKey

func NewMandrillClientWithAPIKey(apiURL, apiKey string) platform.SenderPlatform

func NewMandrillClientWithSMTP

func NewMandrillClientWithSMTP(smtpHost string, smtpPort int, smtpUsername, smtpPassword string) platform.SenderPlatform

Types

type MailSender

type MailSender struct {
	Host   string
	APIKey string
}

func (MailSender) Send

func (e MailSender) Send(ctx context.Context, emailData object.EmailData) error

type SMTPMailSender

type SMTPMailSender struct {
	Host     string
	Port     int
	Username string
	Password string
}

func (SMTPMailSender) Send

func (e SMTPMailSender) Send(ctx context.Context, emailData object.EmailData) error

Jump to

Keyboard shortcuts

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