Browse Source

Update Email Sender Service, comment enablng SSL

add_swagger
MSI\2Fi 11 months ago
parent
commit
3761c91585
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/main/java/com/ffii/tsms/modules/common/mail/service/MailSenderService.kt

+ 3
- 2
src/main/java/com/ffii/tsms/modules/common/mail/service/MailSenderService.kt View File

@@ -28,8 +28,9 @@ open class MailSenderService(private val settingsService: SettingsService) {
props["mail.smtp.connectiontimeout"] = "10000" props["mail.smtp.connectiontimeout"] = "10000"
} }
props["mail.smtp.auth"] = auth props["mail.smtp.auth"] = auth
props["mail.smtp.starttls.enable"] = "true"
props["mail.smtp.ssl.protocols"] = "TLSv1.2"
// The below setting needs to be included when the SMTP has TLS Version
// props["mail.smtp.starttls.enable"] = "true"
// props["mail.smtp.ssl.protocols"] = "TLSv1.2"


sender.host = config.host sender.host = config.host
sender.port = config.port!! sender.port = config.port!!


Loading…
Cancel
Save