Versions in this module Expand all Collapse all v2 v2.0.0 Jun 18, 2023 Changes in this version + const AuthTypeCRAMMD5 + const AuthTypePlain + const PluginEmail + const TypeNone + const TypeSMTP + func New(ctx context.Context, rawCfg *handlerTY.Config) (handlerTY.Plugin, error) + type Client interface + Close func() error + Name func() string + Post func(variables map[string]interface{}) error + Send func(from string, to []string, subject, body string) error + Start func() error + State func() *types.State + func NewSMTPClient(ctx context.Context, logger *zap.Logger, handlerCfg *handlerTY.Config, ...) (Client, error) + type Config struct + AuthType string + FromEmail string + Host string + Insecure bool + Password string + Port int + ToEmails string + Type string + Username string + type SmtpClient struct + func (sc *SmtpClient) Close() error + func (sc *SmtpClient) Name() string + func (sc *SmtpClient) Post(parameters map[string]interface{}) error + func (sc *SmtpClient) Send(from string, to []string, subject, body string) error + func (sc *SmtpClient) Start() error + func (sc *SmtpClient) State() *types.State