Documentation ¶ Index ¶ type SendParams type Smtp func NewSmtp(authentication bool, tlsConnection bool) (Smtp, error) type SmtpImpl func (c *SmtpImpl) Send(ctx context.Context, params *SendParams) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type SendParams ¶ type SendParams struct { To []string From string Subject string Text string Html string } type Smtp ¶ type Smtp interface { Send(ctx context.Context, params *SendParams) error } func NewSmtp ¶ func NewSmtp(authentication bool, tlsConnection bool) (Smtp, error) type SmtpImpl ¶ type SmtpImpl struct { // contains filtered or unexported fields } func (*SmtpImpl) Send ¶ func (c *SmtpImpl) Send(ctx context.Context, params *SendParams) error Source Files ¶ View all Source files smtp.client.go smtp.dto.go Click to show internal directories. Click to hide internal directories.