mailer

package
v0.0.0-...-01795a6 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	Buffer   *bytes.Buffer
	Boundary interface{}
	Config   Config
	Body     struct {
		To      mail.Address
		From    mail.Address
		Subject interface{}
		Message interface{}
	}
}

func (*API) AttachFile

func (api *API) AttachFile(filepath string) bool

func (*API) AttachFileBytes

func (api *API) AttachFileBytes(name string, file []byte) bool

func (*API) Send

func (api *API) Send() bool

func (*API) SetBoundary

func (api *API) SetBoundary()

func (*API) SetHeaders

func (api *API) SetHeaders(from, to mail.Address, subject, message interface{})

type Config

type Config struct {
	MailHost string
	MailPort string
	MailUser string
	MailPass string
}

Jump to

Keyboard shortcuts

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