Documentation
¶
Index ¶
Constants ¶
View Source
const ( HdrContentType = "Content-Type" HdrContentTransferEncoding = "Content-Transfer-Encoding" HdrContentDisposition = "Content-Disposition" ContentTypeOctetStream = "application/octet-stream" HdrContentID = "Content-ID" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { To []string From string Sender string Subject string ReplyTo []string Cc []string Bcc []string PlainBody string HTMLBody string Headers textproto.MIMEHeader // contains filtered or unexported fields }
Message is the email which needs to be sent.
func (*Message) Attach ¶
func (m *Message) Attach(r io.Reader, filename string, contentType string, headers textproto.MIMEHeader) error
Attach creates an attachment in the message. `headers` is optional. If given, it will add the headers to the attachment.
func (*Message) AttachFile ¶
AttachFile attaches given file to the message. This is a wrapper over Attach function.
type Response ¶
type Response struct { MessageID string `json:"message_id"` Messages map[string]ResponseMessage `json:"messages"` }
type ResponseMessage ¶
Click to show internal directories.
Click to hide internal directories.