Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailPath ¶
MailPath represents an SMTP forward-path or return-path
func MailPathFromString ¶
MailPathFromString parses a forward-path or reverse-path into its parts
type SMTPMail ¶
type SMTPMail struct {
ID MessageID
From *MailPath
To []*MailPath
Email *email.Email
Origin *SMTPMessage
}
SMTPMail represents parsed SMTPMessage what allow easily get and manipulate data
type SMTPMessage ¶
SMTPMessage represents a raw SMTP message
func FromString ¶
func FromString(messageString string) *SMTPMessage
FromString returns a SMTPMessage from raw message bytes (as output by SMTPMessage.ToReader())
func (*SMTPMessage) ToReader ¶
func (message *SMTPMessage) ToReader() io.Reader
ToReader returns an io.Reader containing the raw message data
func (*SMTPMessage) ToSMTPMail ¶
func (message *SMTPMessage) ToSMTPMail(id MessageID) (*SMTPMail, error)
ToSMTPMail converts SMTPMassage to SMTPMail structure In case if `id` is empty will be automatically generated new identificator
Click to show internal directories.
Click to hide internal directories.