Documentation
¶
Index ¶
Constants ¶
View Source
const ResponseStyleLbl = ` text-align: right; padding-right: 1em; `
View Source
const ResponseStyleNo = ` font-size: x-large; color: red; `
View Source
const ResponseStyleYes = ` font-size: large; color: lightgreen; `
View Source
const RiderNameSQL = "ifnull(entrants.RiderName,ifnull(entrants.RiderFirst,'') || ' ' || ifnull(entrants.RiderLast,'')) AS RiderName"
SQL for safely retrieving full names
Variables ¶
View Source
var AllowShortSubject bool
View Source
var Options = jpeg.Options{Quality: 100}
View Source
var ReloadConfigFromDB bool
View Source
var SilentMode bool = false
View Source
var VerboseMode bool = true
Functions ¶
Types ¶
type Attachment ¶
type Attachment struct {
Filename string
ContentType string
Data io.Reader
ContentDisposition string
}
Attachment with filename, content type and data (as a io.Reader)
type Email ¶
type Email struct {
Header mail.Header
Subject string
Sender *mail.Address
From []*mail.Address
ReplyTo []*mail.Address
To []*mail.Address
Cc []*mail.Address
Bcc []*mail.Address
Date time.Time
MessageID string
InReplyTo []string
References []string
ResentFrom []*mail.Address
ResentSender *mail.Address
ResentTo []*mail.Address
ResentDate time.Time
ResentCc []*mail.Address
ResentBcc []*mail.Address
ResentMessageID string
ContentType string
Content io.Reader
HTMLBody string
TextBody string
Attachments []Attachment
EmbeddedFiles []EmbeddedFile
}
Email with fields for all the headers defined in RFC5322 with it's attachments and
type EmailSettings ¶
Click to show internal directories.
Click to hide internal directories.