This commit is contained in:
Tour
2025-12-08 08:16:35 +01:00

View File

@@ -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());