Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Production = false
Production should be set to true in production environment.
Functions ¶
func RenderTemplate ¶ added in v1.0.1
RenderTemplate renders the email into its template with context.
Types ¶
type Context ¶ added in v1.0.1
type Context map[string]interface{}
Context defines a simple list of string:value pairs for mail templates.
type Email ¶ added in v1.0.1
type Email struct {
Recipients []string
ReplyTo string
Subject string
Body string
Template string
Layout string
}
Email represents an email to be sent.
func New ¶ added in v1.0.1
New returns a new email with the default tenplates and the given recipient.
Click to show internal directories.
Click to hide internal directories.