Documentation ¶
Index ¶
- Constants
- type Configuration
- type FakeSMTP
- func (e *FakeSMTP) Connect() error
- func (e *FakeSMTP) Init() error
- func (e *FakeSMTP) Quit() error
- func (e *FakeSMTP) SendEmail(from, to, subject, content string) error
- func (e *FakeSMTP) SendHTMLEmail(from, to, subject, content string) error
- func (e *FakeSMTP) SendRawEmail(from string, to string, content bytes.Buffer) error
- type SMTP
- func (e *SMTP) Connect() error
- func (e *SMTP) Init() error
- func (e *SMTP) Quit() error
- func (e *SMTP) SendEmail(from, to, subject, content string) error
- func (e *SMTP) SendHTMLEmail(from, to, subject, content string) error
- func (e *SMTP) SendRawEmail(from string, to string, content bytes.Buffer) error
Constants ¶
View Source
const (
// MimeHTML - Content type
MimeHTML = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct {
Host string
}
type FakeSMTP ¶
type FakeSMTP struct {
SMTP
}
FakeSMTP -
func NewFakeSMTP ¶
func NewFakeSMTP(l logger.Logger, c Configuration) (*FakeSMTP, error)
NewFakeSMTP -
func (*FakeSMTP) SendHTMLEmail ¶
SendHTMLEmail -
Click to show internal directories.
Click to hide internal directories.