mail

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIME = "" /* 144-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server   string //smtp server .
	Port     int    // smtp server port
	UserName string // email or username
	APIKey   string // password or apikey
	FrontEnd string // front end landing page host
}

type Request

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

func NewRequest

func NewRequest(c *Config, from, subject string, to, cc []string) *Request

func (*Request) MailchimpSend

func (r *Request) MailchimpSend(templateName string, items interface{}) (err error)

func (*Request) SMTPSend

func (r *Request) SMTPSend(templateName string, items interface{}) (err error)

Jump to

Keyboard shortcuts

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