email

package
v0.0.0-...-7941b6a Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmazonSES

type AmazonSES struct{}

func (AmazonSES) Send

func (a AmazonSES) Send(toEmail, toName, fromEmail, fromName, subject, body, replyTo string) error

Send uses Amazon SES to send an HTML email, it will convert body to text automatically

type Gmail

type Gmail struct{}

func (Gmail) Send

func (g Gmail) Send(toEmail, toName, fromEmail, fromName, subject, body, replyTo string) error

Send uses GMail SMTP to send an HTML email, it will convert body to text automatically body holds the link to the reset form Code based off https://medium.com/@dhanushgopinath/sending-html-emails-using-templates-in-golang-9e953ca32f3d TODO - use a package like https://github.com/matcornic/hermes

type Request

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

Jump to

Keyboard shortcuts

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