sendmail

package module
v0.0.0-...-8e06c21 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: MIT Imports: 14 Imported by: 0

README

go-sendmail

Golang sendmail module

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachedFile

func AttachedFile(fpath string, boundary string) string

func ContentHTML

func ContentHTML(html string) string

func ReadTemplateFile

func ReadTemplateFile(path string, data interface{}) (string, error)

func Send

func Send(setting *Config, msg *mail.Message)

func SendMail

func SendMail(setting *Config, msg *string)

Types

type Config

type Config struct {
	User     string
	Password string
	Host     string
	Port     int
	TLS      bool
	Datagram string
}

Jump to

Keyboard shortcuts

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