package email

import "github.com/labstack/gommon/email"

Index

Types

type Email

type Email struct {
	Auth     smtp.Auth
	Header   map[string]string
	Template *template.Template
	// contains filtered or unexported fields
}

func New

func New(smtpAddress string) *Email

func (*Email) Send

func (e *Email) Send(m *Message) (err error)

type File

type File struct {
	Name    string
	Type    string
	Content string
}

type Message

type Message struct {
	ID          string  `json:"id"`
	From        string  `json:"from"`
	To          string  `json:"to"`
	CC          string  `json:"cc"`
	Subject     string  `json:"subject"`
	BodyText    string  `json:"body_text"`
	BodyHTML    string  `json:"body_html"`
	Inlines     []*File `json:"inlines"`
	Attachments []*File `json:"attachments"`
	// contains filtered or unexported fields
}

Source Files

email.go

Version
v0.2.7
Published
Jul 8, 2018
Platform
linux/amd64
Imports
8 packages
Last checked
now

Tools for package owners.