Documentation ¶
Index ¶
Constants ¶
View Source
const MAIL_TYPE_JOB_NOTIF = "JOB"
Variables ¶
View Source
var MailRequests = make(chan Mail)
View Source
var MailTemplates = map[string]string{ MAIL_TYPE_JOB_NOTIF: "job_notification", }
Functions ¶
This section is empty.
Types ¶
type Mail ¶
type Mail struct { EmailTo []string `json:"email_to"` EmailFrom string `json:"email_from"` Type string `json:"type"` Data interface{} `json:"data"` Subject string `json:"subject"` Msg string `json:"message"` Body []byte }
func (*Mail) BuildMessage ¶
func (*Mail) ParseTemplate ¶
func (*Mail) ProcessEmail ¶
Click to show internal directories.
Click to hide internal directories.