Documentation
¶
Overview ¶
Package notifysend is the transport layer of the notification substrate: it delivers an already-rendered email over SMTP using the admin-configured connection settings.
It decides nothing about content or scheduling. Settings arrive per call rather than at construction, so an admin change applies to the next send without restarting the worker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTPSender ¶
type SMTPSender struct{}
SMTPSender implements Sender over SMTP via go-mail. A fresh connection is dialed per send: notification volume is human-scale and a stateless dial keeps credential and TLS changes immediate.
func NewSMTPSender ¶
func NewSMTPSender() *SMTPSender
NewSMTPSender creates the production SMTP sender.
func (*SMTPSender) Send ¶
func (*SMTPSender) Send(ctx context.Context, settings smtp.Settings, email notifyrender.Email) error
Send renders no content itself; it wraps email into a multipart message (plaintext body + HTML alternative) and delivers it.