Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderMessageID = "Message-ID" HeaderBcc = "Bcc" HeaderCc = "Cc" HeaderFrom = "From" HeaderSubject = "Subject" HeaderTo = "To" AddrSep = ", " HeaderSep = ": " )
Variables ¶
This section is empty.
Functions ¶
func EncodeHeaderLine ¶ added in v0.67.2
func MustEncodeHeaderLine ¶ added in v0.67.2
Types ¶
type Addresses ¶ added in v0.40.0
type MessageWriter ¶ added in v0.67.2
type MessageWriter struct {
To Addresses
Cc Addresses
Bcc Addresses
From *mail.Address
Sender *mail.Address
Date *time.Time
Subject string
Header textproto.MIMEHeader
BodyPartsSet multipartutil.PartsSet // Attachments or Inline
}
func NewMessageWriter ¶ added in v0.67.3
func NewMessageWriter() *MessageWriter
func (*MessageWriter) Bytes ¶ added in v0.67.3
func (mw *MessageWriter) Bytes() ([]byte, error)
func (*MessageWriter) HeaderLines ¶ added in v0.67.2
func (mw *MessageWriter) HeaderLines() []string
func (*MessageWriter) String ¶ added in v0.67.2
func (mw *MessageWriter) String() (string, error)
Click to show internal directories.
Click to hide internal directories.