sendHTMLEmail

package
v0.0.0-...-96d897f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

inspired by https://github.com/jpoehls/gophermail

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingRecipient   = errors.New("No recipient specified. Please specify To recipient.")
	ErrMissingFromAddress = errors.New("No from address specified.")
)

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

func NewBase64MimeEncoder

func NewBase64MimeEncoder(w io.Writer) io.WriteCloser

func SendHTMLMail

func SendHTMLMail(sender string, server string, port string, a smtp.Auth, msg *Message, cfg tls.Config) error

SendHTMLMail send TLS HTML Email - Main Function

Types

type EmailValidationActivity

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

func (*EmailValidationActivity) Eval

func (a *EmailValidationActivity) Eval(context activity.Context) (done bool, err error)

func (*EmailValidationActivity) Metadata

func (a *EmailValidationActivity) Metadata() *activity.Metadata

type Message

type Message struct {
	From     mail.Address
	ReplyTo  mail.Address
	To       []mail.Address
	Subject  string
	HTMLBody string
	Headers  mail.Header
}

func (*Message) AddTo

func (m *Message) AddTo(addresses ...string) error

func (*Message) Bytes

func (m *Message) Bytes() ([]byte, error)

func (*Message) SetFrom

func (m *Message) SetFrom(address string) error

func (*Message) SetReplyTo

func (m *Message) SetReplyTo(address string) error

Jump to

Keyboard shortcuts

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