providers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailgunProvider

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

MailgunProvider delivers messages through Mailgun API.

func NewMailgunProvider

func NewMailgunProvider(apiURI string) *MailgunProvider

NewMailgunProvider creates a Mailgun sending agent.

func (*MailgunProvider) Close

func (p *MailgunProvider) Close() error

Close tears down the existing connection.

func (*MailgunProvider) Open

func (p *MailgunProvider) Open() error

Open sets up a connection to the Mailgun server.

func (*MailgunProvider) Send

func (p *MailgunProvider) Send(to string, MIME io.ReadCloser, test bool) (string, error)

Send queues one message to one recipient.

type Provider

type Provider interface {
	Open() error
	Close() error
	Send(to string, MIME io.ReadCloser, test bool) (string, error)
}

Provider delivers mail.

func NewMulticast

func NewMulticast(using ...Provider) Provider

Jump to

Keyboard shortcuts

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