Documentation
¶
Index ¶
- Constants
- func ExtractTopMostPortion(fullBody string) string
- func ExtractTopMostPortionFromHTML(htmlBody string) string
- type Email
- func (e Email) AndCC(cc ...EmailAddress) Email
- func (e Email) Dup() Email
- func (e Email) Forward(from EmailAddress, to EmailAddress, body any) Email
- func (c Email) IncludesRecipient(recipient EmailAddress) bool
- func (e Email) IsZero() bool
- func (e Email) Recipients() EmailAddresses
- func (e Email) Reply(from EmailAddress, body any) Email
- func (e Email) ReplyAll(from EmailAddress, body any) Email
- func (e Email) ReplyAllWithoutQuote(from EmailAddress, body any) Email
- func (e Email) ReplyWithoutQuote(from EmailAddress, body any) Email
- func (e Email) String() string
- func (e Email) WithBody(body any) Email
- func (e Email) WithFrom(from EmailAddress) Email
- func (e Email) WithSubject(subject string) Email
- func (e Email) WithTo(to ...EmailAddress) Email
- type EmailAddress
- type EmailAddresses
- type FakeOutbox
- type Markdown
- type Outbox
- type OutboxInt
- type S3DBInt
Constants ¶
View Source
const DEFAULT_TIMEOUT = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
func ExtractTopMostPortion ¶
Types ¶
type Email ¶
type Email struct { MessageID string InReplyTo string DebugKey string From EmailAddress To EmailAddresses CC EmailAddresses Subject string Date string Text string HTML string }
func ParseIncomingEmail ¶
func (Email) AndCC ¶
func (e Email) AndCC(cc ...EmailAddress) Email
func (Email) Forward ¶
func (e Email) Forward(from EmailAddress, to EmailAddress, body any) Email
func (Email) IncludesRecipient ¶
func (c Email) IncludesRecipient(recipient EmailAddress) bool
func (Email) Recipients ¶
func (e Email) Recipients() EmailAddresses
func (Email) ReplyAllWithoutQuote ¶
func (e Email) ReplyAllWithoutQuote(from EmailAddress, body any) Email
func (Email) ReplyWithoutQuote ¶
func (e Email) ReplyWithoutQuote(from EmailAddress, body any) Email
func (Email) WithFrom ¶
func (e Email) WithFrom(from EmailAddress) Email
func (Email) WithSubject ¶
func (Email) WithTo ¶
func (e Email) WithTo(to ...EmailAddress) Email
type EmailAddress ¶
type EmailAddress string
func (EmailAddress) Address ¶
func (e EmailAddress) Address() string
func (EmailAddress) Equals ¶
func (e EmailAddress) Equals(other EmailAddress) bool
func (EmailAddress) HasExplicitName ¶
func (e EmailAddress) HasExplicitName() bool
func (EmailAddress) Name ¶
func (e EmailAddress) Name() string
func (EmailAddress) String ¶
func (e EmailAddress) String() string
type EmailAddresses ¶
type EmailAddresses []EmailAddress
func (EmailAddresses) String ¶
func (e EmailAddresses) String() string
func (EmailAddresses) Strings ¶
func (e EmailAddresses) Strings() []string
type FakeOutbox ¶
type FakeOutbox struct {
// contains filtered or unexported fields
}
func NewFakeOutbox ¶
func NewFakeOutbox() *FakeOutbox
func (*FakeOutbox) Clear ¶
func (o *FakeOutbox) Clear()
func (*FakeOutbox) Emails ¶
func (o *FakeOutbox) Emails() []Email
func (*FakeOutbox) EnableLogging ¶
func (o *FakeOutbox) EnableLogging(w io.Writer)
func (*FakeOutbox) LastEmail ¶
func (o *FakeOutbox) LastEmail() Email
func (*FakeOutbox) SendEmail ¶
func (o *FakeOutbox) SendEmail(email Email) error
func (*FakeOutbox) SetError ¶
func (o *FakeOutbox) SetError(err error)
Click to show internal directories.
Click to hide internal directories.