Documentation
¶
Index ¶
- Constants
- type Message
- type MessageBuilder
- func (mb *MessageBuilder) BodyHtmlLine() string
- func (mb *MessageBuilder) BodyLine(content string, contentType string) string
- func (mb *MessageBuilder) BodyTextLine() string
- func (mb *MessageBuilder) CcLine() string
- func (mb *MessageBuilder) FromLine() string
- func (mb *MessageBuilder) SubjectLine() string
- func (mb *MessageBuilder) ToLine() string
- type Sender
Constants ¶
View Source
const ( ContentTypeMultipartMixed = "multipart/mixed" ContentTypeMultipartAlternative = "multipart/alternative" ContentTypeTextHtml = "text/html" ContentTypeTextPlain = "text/plain" ContentTypeLine = "Content-Type: %s\n" ContentTypeLineBoundary = "Content-Type: %s; boundary=%s\n\n--%s\n" ContentTransfertEncodingBase64Line = "Content-Transfer-Encoding: base64\n" MimeVersionLine = "MIME-Version: 1.0\n" BoundaryLine = "\n\n--%s\n" ContentDispositionAttachmentLine = "Content-Disposition: attachment; filename=\"=?UTF-8?B?%s?=\"\r\n\r\n" BackLine = "\r\n" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { From mail.Address To []mail.Address CC []mail.Address BCC []mail.Address Subject string BodyText string BodyHtml string Attachments map[string][]byte }
func NewMessage ¶
func (*Message) AttachFile ¶
func (*Message) SetBccFromStrings ¶ added in v1.1.1
func (*Message) SetCcFromStrings ¶ added in v1.1.1
func (*Message) SetFromFromString ¶ added in v1.1.1
func (*Message) SetToFromStrings ¶ added in v1.1.1
type MessageBuilder ¶ added in v1.2.0
func (*MessageBuilder) BodyHtmlLine ¶ added in v1.2.0
func (mb *MessageBuilder) BodyHtmlLine() string
func (*MessageBuilder) BodyLine ¶ added in v1.2.0
func (mb *MessageBuilder) BodyLine(content string, contentType string) string
func (*MessageBuilder) BodyTextLine ¶ added in v1.2.0
func (mb *MessageBuilder) BodyTextLine() string
func (*MessageBuilder) CcLine ¶ added in v1.2.0
func (mb *MessageBuilder) CcLine() string
func (*MessageBuilder) FromLine ¶ added in v1.2.0
func (mb *MessageBuilder) FromLine() string
func (*MessageBuilder) SubjectLine ¶ added in v1.2.0
func (mb *MessageBuilder) SubjectLine() string
func (*MessageBuilder) ToLine ¶ added in v1.2.0
func (mb *MessageBuilder) ToLine() string
type Sender ¶
func (*Sender) AnonymousSend ¶
func (*Sender) AuthenticatedSend ¶
func (*Sender) IsAuthenticated ¶
Click to show internal directories.
Click to hide internal directories.