email

package
v0.0.0-...-fb83055 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMail

func NewMail(username string, password string, host string) *mail

Types

type MailService

type MailService interface {
	SendMail(msg Message) (err error)
	AttachFile(filePath string) (out map[string][]byte, err error)
}

type Message

type Message struct {
	Sender     string
	To         []string
	CC         []string
	BCC        []string
	Subject    string
	Body       string
	Attachment map[string][]byte
}

func (*Message) ToByteArray

func (msg *Message) ToByteArray() []byte

Jump to

Keyboard shortcuts

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