Versions in this module Expand all Collapse all v0 v0.5.0 May 26, 2024 v0.4.0 May 2, 2024 v0.3.1 Nov 28, 2023 v0.3.0 Nov 26, 2023 Changes in this version + func StripHTMLRegex(s string) string + type ErrorService struct + func (e ErrorService) Send(_ context.Context, _ Mail) error + type LogService struct + Logger *log.Logger + func (l LogService) Send(_ context.Context, m Mail) error + type Mail struct + Message string + Recipients []string + Subject string + type SMTPService struct + From string + Host string + Password string + Port int + User string + func (s SMTPService) Send(ctx context.Context, mail Mail) error + type SendgridService struct + APIKey string + SenderAddress string + SenderName string + func (s SendgridService) Send(ctx context.Context, m Mail) error + type Service interface + Send func(ctx context.Context, m Mail) error