568ba3b016
- Add structured logging for email sending (success/failure) - Add HealthCheck method to EmailService interface - Extend /health endpoint to include SMTP status - Update all email service mocks to implement HealthCheck - SMTP status shows: ok, error, or disabled
14 lines
197 B
Go
14 lines
197 B
Go
package services
|
|
|
|
type EmailMessage struct {
|
|
To string
|
|
Subject string
|
|
Body string
|
|
IsHTML bool
|
|
}
|
|
|
|
type EmailService interface {
|
|
Send(message EmailMessage) error
|
|
HealthCheck() error
|
|
}
|