Updated simple-java-mail
This commit is contained in:
parent
aba1b91eec
commit
216e5f2e82
@ -122,7 +122,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.simplejavamail</groupId>
|
<groupId>org.simplejavamail</groupId>
|
||||||
<artifactId>simple-java-mail</artifactId>
|
<artifactId>simple-java-mail</artifactId>
|
||||||
<version>5.2.0</version>
|
<version>6.0.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlinx</groupId>
|
<groupId>org.jetbrains.kotlinx</groupId>
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package uk.co.neviyn.observationdatabase
|
package uk.co.neviyn.observationdatabase
|
||||||
|
|
||||||
import org.joda.time.DateTime
|
import org.joda.time.DateTime
|
||||||
|
import org.simplejavamail.api.mailer.Mailer
|
||||||
|
import org.simplejavamail.api.mailer.config.TransportStrategy
|
||||||
import org.simplejavamail.email.EmailBuilder
|
import org.simplejavamail.email.EmailBuilder
|
||||||
import org.simplejavamail.mailer.Mailer
|
|
||||||
import org.simplejavamail.mailer.MailerBuilder
|
import org.simplejavamail.mailer.MailerBuilder
|
||||||
import org.slf4j.Logger
|
import org.slf4j.Logger
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
@ -47,5 +48,5 @@ class Email {
|
|||||||
|
|
||||||
private fun createMailer(): Mailer = MailerBuilder.withSMTPServer(environment.getProperty("smtp.host"),
|
private fun createMailer(): Mailer = MailerBuilder.withSMTPServer(environment.getProperty("smtp.host"),
|
||||||
environment.getProperty("smtp.port")!!.toInt(), environment.getProperty("smtp.username"),
|
environment.getProperty("smtp.port")!!.toInt(), environment.getProperty("smtp.username"),
|
||||||
environment.getProperty("smtp.password")).buildMailer()
|
environment.getProperty("smtp.password")).withTransportStrategy(TransportStrategy.SMTP_TLS).buildMailer()
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user