mail

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMailContent

func ParseMailContent(body string) (content string)

func SaveAttachment

func SaveAttachment(fileContent []byte, token, fileName string) error

func SendMail

func SendMail(mail Mail) error

Types

type Mail

type Mail struct {
	Subject             string   `json:"subject"`
	To                  []string `json:"to"`
	Cc                  []string `json:"cc"`
	From                string   `json:"from"`
	Priority            bool     `json:"priority"`
	Body                string   `json:"body"`
	Token               string   `json:"token"`
	AttachmentFileNames []string `json:"attachmentFileNames"`
}

Jump to

Keyboard shortcuts

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