Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ModeFromStack is the no-reply mode of a mail, to send mail "to" the // user's mail, as a noreply@ ModeFromStack = "noreply" // ModeFromUser is the "from" mode of a mail, to send mail "from" the user's // mail. ModeFromUser = "from" // ModeSupport is used to send both a request to the support and a // confirmation to the user. ModeSupport = "support" // DefaultLayout defines the default MJML layout to use DefaultLayout = "layout" // CozyCloudLayout defines the alternative MJML layout CozyCloudLayout = "layout-cozycloud" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
Attachment is for attaching a file to the mail
type Options ¶
type Options struct { Mode string `json:"mode"` Subject string `json:"subject"` From *Address `json:"from,omitempty"` To []*Address `json:"to,omitempty"` ReplyTo *Address `json:"reply_to,omitempty"` Dialer *gomail.DialerOptions `json:"dialer,omitempty"` Date *time.Time `json:"date,omitempty"` Parts []*Part `json:"parts,omitempty"` RecipientName string `json:"recipient_name,omitempty"` TemplateName string `json:"template_name,omitempty"` TemplateValues map[string]interface{} `json:"template_values,omitempty"` Attachments []*Attachment `json:"attachments,omitempty"` Locale string `json:"locale,omitempty"` Layout string `json:"layout,omitempty"` }
Options should be used as the options of a mail with manually defined content: body and body content-type. It is used as the input of the "sendmail" worker.
Click to show internal directories.
Click to hide internal directories.