Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Builder ¶
type Builder interface { Email() EmailBuilder SMTPClient() SMTPClientBuilder }
type EmailBuilder ¶
type EmailBuilder interface { Subject(subject string) EmailBuilder From(sender string) EmailBuilder To(recipients ...string) EmailBuilder CarbonCopy(copyes ...string) EmailBuilder BlindCarbonCopy(blindCopyes ...string) EmailBuilder Text(text string) EmailBuilder HTML(html string) EmailBuilder Attach(filename, contectType string, data []byte) EmailBuilder AttachFromReader(filename, contectType string, r io.Reader) EmailBuilder AttachFromFile(filename string) EmailBuilder Build() *email }
func NewEmail ¶
func NewEmail() EmailBuilder
type SMTPClient ¶
type SMTPClient interface {
Send(*email) error
}
type SMTPClientBuilder ¶
type SMTPClientBuilder interface { Host(host string) SMTPClientBuilder Login(login string) SMTPClientBuilder Password(password string) SMTPClientBuilder TLS(isTLS bool) SMTPClientBuilder SSL(isSSL bool) SMTPClientBuilder Build() (*smtpClient, error) }
func NewSMTPClient ¶
func NewSMTPClient() SMTPClientBuilder
Click to show internal directories.
Click to hide internal directories.