Documentation
¶
Index ¶
- type Attachment
- type Client
- type Email
- func (e *Email) AddAttachment(Name string, Content []byte, ContentType string)
- func (e *Email) AddAttachmentReader(Name string, Content io.Reader, ContentType string) error
- func (e *Email) AddHeader(Name, Value string)
- func (e *Email) DelAttachment(Name string) bool
- func (e *Email) DelHeader(Name string) bool
- type EmailResponse
- type Error
- type Header
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Client ¶
type Client interface {
Email(*Email) (*EmailResponse, error)
EmailBatch([]*Email) ([]*EmailResponse, error)
}
type Email ¶
type Email struct {
From string `json:"From"`
To string `json:"To"`
Cc string `json:"Cc,omitempty"`
Bcc string `json:"Bcc,omitempty"`
Subject string `json:"Subject,omitempty"`
Tag string `json:"Tag,omitempty"`
HtmlBody string `json:"HtmlBody"`
TextBody string `json:"TextBody"`
ReplyTo string `json:"ReplyTo,omitempty"`
Headers []Header `json:"Headers,omitempty"`
TrackOpens bool `json:"TrackOpens,omitempty"`
Attachments []Attachment `json:"Attachments,omitempty"`
}
func (*Email) AddAttachment ¶
func (*Email) AddAttachmentReader ¶
func (*Email) DelAttachment ¶
type EmailResponse ¶
Click to show internal directories.
Click to hide internal directories.