Documentation ¶ Index ¶ func SendMail(addr, host string, auth smtp.Auth, from string, to []string, body []byte) error type App func New(config Config, meter metric.Meter, tracer trace.Tracer) App func (a App) Send(ctx context.Context, mail model.Mail) error type Config func Flags(fs *flag.FlagSet, prefix string) Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func SendMail ¶ added in v1.31.1 func SendMail(addr, host string, auth smtp.Auth, from string, to []string, body []byte) error Types ¶ type App ¶ type App struct { // contains filtered or unexported fields } App of package func New ¶ func New(config Config, meter metric.Meter, tracer trace.Tracer) App New creates new App from Config func (App) Send ¶ func (a App) Send(ctx context.Context, mail model.Mail) error Send email by smtp type Config ¶ type Config struct { // contains filtered or unexported fields } Config of package func Flags ¶ func Flags(fs *flag.FlagSet, prefix string) Config Flags adds flags for configuring package Source Files ¶ View all Source files smtp.go Click to show internal directories. Click to hide internal directories.