mail

package
v0.0.0-...-508df49 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Domain string `koanf:"domain"`
	APIKEY string `koanf:"api_key"`
}

Config contains config parameters for mailgun.

type Mailgun

type Mailgun struct {
	APIKEY string
	Client *mailgun.MailgunImpl
}

Mailgun contains variables for connection to mailgun.

func NewConnection

func NewConnection(cfg Config) *Mailgun

NewConnection opens a new connection for mailgun service.

func (*Mailgun) Send

func (m *Mailgun) Send(content, subject, receiver string) error

Send emails with mailgun client.

Jump to

Keyboard shortcuts

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