Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailClient ¶
type EmailClient interface {
SendEmail(email *models.Newsletter) error
}
type SMTPClient ¶
type SMTPClient struct { SmtpServer string // export for testing SmtpPort int Sender *models.SubscriberEmail // contains filtered or unexported fields }
func NewSMTPClient ¶
func NewSMTPClient(cfgFile *string) (client *SMTPClient, err error)
func (*SMTPClient) SendEmail ¶
func (client *SMTPClient) SendEmail(newsletter *models.Newsletter) (err error)
Click to show internal directories.
Click to hide internal directories.