mailgun

package
v0.0.0-...-baa204d Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mailgun provides a Mailer interface to send mail

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mailer

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

func NewMailer

func NewMailer(sender string, domain string, apiKey string, tmpls *template.Template) Mailer

func (Mailer) Send

func (m Mailer) Send(to string, subject string, body string) error

func (Mailer) SendTemplate

func (m Mailer) SendTemplate(to string, subject string, tmpl string, data interface{}) error

Jump to

Keyboard shortcuts

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