sender

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sender manages actually sending the emails for the postmaster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Send

func Send(job *Mail) error

Types

type Mail

type Mail struct {
	To         string            `json:"to" validate:"email,nonzero,max=256"`
	ToName     string            `json:"toName,omitempty" validate:"max=256"`
	From       string            `json:"from" validate:"email,nonzero,max=256"`
	FromName   string            `json:"fromName,omitempty"	validate:"max=256"`
	Subject    string            `json:"subject" validate:"nonzero,max=998"`    // RFC 5322 says not longer than 998
	HTML       string            `json:"html,omitempty" validate:"max=2097152"` //2MB
	Text       string            `json:"text,omitempty" validate:"max=2097152"` //2MB
	ReplyTo    string            `json:"replyTo,omitempty" validate:"max=256"`
	UniqueArgs map[string]string `json:"uniqueArgs,omitempty" validate:"argsMap=max=256"`
	Flags      int64             `json:"flags"`
}

Jump to

Keyboard shortcuts

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