all
This commit is contained in:
@@ -71,9 +71,6 @@ public record NotificationService(Config cfg) {
|
||||
}
|
||||
});
|
||||
|
||||
// Enable debug mode for troubleshooting (can be disabled in production)
|
||||
// session.setDebug(true);
|
||||
|
||||
var m = new MimeMessage(session);
|
||||
m.setFrom(new InternetAddress(cfg.smtpUsername()));
|
||||
m.setRecipients(Message.RecipientType.TO, InternetAddress.parse(cfg.toEmail()));
|
||||
@@ -87,6 +84,7 @@ public record NotificationService(Config cfg) {
|
||||
}
|
||||
|
||||
Transport.send(m);
|
||||
log.info("Email notification: {}", title);
|
||||
log.info("Email notification sent: {}", title);
|
||||
} catch (javax.mail.AuthenticationFailedException e) {
|
||||
log.warn("Email authentication failed - check Gmail App Password: {}", e.getMessage());
|
||||
|
||||
Reference in New Issue
Block a user