Compare commits

..

3 commits

Author SHA1 Message Date
c68b3f2f7e
Merge pull request 'feat(email): add mail protocol configuration option' (!214) from bugfix/prod-mails into main
All checks were successful
Release / Release (push) Successful in 58s
Release / Build Frontend Image (push) Successful in 25s
Release / Build Backend Image (push) Successful in 31s
Reviewed-on: #214
Reviewed-by: Jan K9f <jan@kjan.email>
2025-05-21 11:13:45 +00:00
c2e85a5516
Merge branch 'main' into bugfix/prod-mails
All checks were successful
CI / Get Changed Files (pull_request) Successful in 10s
CI / eslint (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 1m8s
CI / Docker backend validation (pull_request) Successful in 56s
2025-05-21 11:11:57 +00:00
dce5d1a86e
feat(email): add mail protocol configuration option
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / eslint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Successful in 1m1s
CI / Docker backend validation (pull_request) Successful in 1m15s
2025-05-21 13:11:14 +02:00
3 changed files with 5 additions and 0 deletions

View file

@ -28,6 +28,7 @@ public class EmailService {
this.mailConfig = mailConfig;
this.mailSender.setHost(mailConfig.host);
this.mailSender.setPort(mailConfig.port);
this.mailSender.setProtocol(mailConfig.protocol);
if (mailConfig.authenticationEnabled) {
this.mailSender.setUsername(mailConfig.username);
this.mailSender.setPassword(mailConfig.password);

View file

@ -22,4 +22,7 @@ public class MailConfig {
@Value("${app.mail.from-address}")
public String fromAddress;
@Value("${app.mail.protocol}")
public String protocol;
}

View file

@ -14,6 +14,7 @@ app.mail.port=${MAIL_PORT:1025}
app.mail.username=${MAIL_USER:null}
app.mail.password=${MAIL_PASS:null}
app.mail.from-address=${MAIL_FROM:casino@localhost}
app.mail.protocol=${MAIL_PROTOCOL:smtp}
spring.application.name=casino