Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
Attachment is a type holding information about an email attachment
func (Attachment) MarshalJSON ¶
func (a Attachment) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface
func (*Attachment) UnmarshalJSON ¶
func (a *Attachment) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaler
type MailSender ¶
type MailSender interface {
Send(to, subject, text string, attachments ...Attachment) error
}
MailSender is an interface for types that can send mails
var ICSMailSender MailSender = icsMailSender{}
ICSMailSender is a MailSender that sends calendar invitations
type TemplateMailSender ¶
type TemplateMailSender interface {
SendTemplate(to, subject, template string, binding any) error
MailSender
}
TemplateMailSender is an interface for types that can send template mails
var HTMLMailSender TemplateMailSender = htmlMailSender{}
HTMLMailSender is a MailSender that sends html mails
var PlainTextMailSender TemplateMailSender = plainTextMailSender{}
PlainTextMailSender is a MailSender that sends plain text mails
Click to show internal directories.
Click to hide internal directories.