fix mail conf

This commit is contained in:
Michele Artini 2023-10-16 14:28:37 +02:00
parent 03c4b9bac6
commit 0fb31ed742
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@ public class EmailSender {
@Value("${oai.conf.notification.smtp.host}") @Value("${oai.conf.notification.smtp.host}")
private String smtpHost; private String smtpHost;
@Value("${oai.conf.notification.smtp.host}") @Value("${oai.conf.notification.smtp.port}")
private long smtpPort; private long smtpPort;
@Value("${oai.conf.notification.smtp.user}") @Value("${oai.conf.notification.smtp.user}")
@ -68,7 +68,7 @@ public class EmailSender {
try { try {
log.info("Sending mail..."); log.info("Sending mail...");
log.info(message.getContent()); log.debug(message.getContent());
Transport.send(message); Transport.send(message);

View File

@ -33,7 +33,7 @@ oai.conf.maxRecords = 1000
oai.conf.notification.sender.name = OAI Collector Service oai.conf.notification.sender.name = OAI Collector Service
oai.conf.notification.sender.email = noreply@research-infrastructures.eu oai.conf.notification.sender.email = noreply@research-infrastructures.eu
oai.conf.notification.smtp.host = localhost oai.conf.notification.smtp.host = localhost
oai.conf.notification.smtp.host = 25 oai.conf.notification.smtp.port = 25
oai.conf.notification.smtp.user = oai.conf.notification.smtp.user =
oai.conf.notification.smtp.password = oai.conf.notification.smtp.password =