Documentation ¶
Index ¶
- func Send(addr string, auth smtp.Auth, m *Message) error
- type Attachment
- type Message
- func NewBooking(from, subject string, body *bytes.Buffer) *Message
- func NewConform(subject string, body *bytes.Buffer, pdfName string, pdf []byte) *Message
- func NewContact(from, subject string, body *bytes.Buffer) *Message
- func NewHTMLMessage(subject string, body string) *Message
- func NewInvoice(subject string, body *bytes.Buffer, pdfName string, pdf []byte) *Message
- func NewMessage(subject string, body string) *Message
- func NewTocht(subject string, body *bytes.Buffer, pdfName string, pdf []byte) *Message
- func (m *Message) Attach(file string) error
- func (m *Message) AttachBytes(file string, data []byte)
- func (m *Message) Bytes() []byte
- func (m *Message) Do(rcpts []string) error
- func (m *Message) Inline(file string) error
- func (m *Message) InlineBytes(file string, data []byte)
- func (m *Message) Tolist() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type Message ¶
type Message struct { From string To []string Cc []string Bcc []string ReplyTo string Subject string Body string BodyContentType string Attachments map[string]*Attachment }
func NewConform ¶
func NewHTMLMessage ¶
NewMessage returns a new Message that can compose an HTML email with attachments
func NewInvoice ¶
func NewMessage ¶
NewMessage returns a new Message that can compose an email with attachments
func (*Message) AttachBytes ¶
func (*Message) InlineBytes ¶
Click to show internal directories.
Click to hide internal directories.