Skip to content

Commit

Permalink
Revert "fix sendEmail & update javax.mail version (#1660)"
Browse files Browse the repository at this point in the history
This reverts commit ddffed0.
  • Loading branch information
allwefantasy authored Jan 14, 2022
1 parent ddffed0 commit 7a81b55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,9 @@ class MailAgent() extends Logging with WowLog with DslTool {
* framework standard protocol is SSL. If your mail service provider requires a non-SSL method,
* please set `properties.mail.smtp.ssl.enable= "false"`, or `properties.mail.smtp.starttls.enable= "false"`
*/
if (!smtpPort.equals("25") && !properties.containsKey("mail.smtp.starttls.enable")
&& !properties.containsKey("mail.smtp.ssl.enable")) {
properties.setProperty("mail.smtp.ssl.enable", smtpPort)
if (!smtpPort.equals("25") && !properties.containsKey("properties.mail.smtp.starttls.enable")
&& !properties.containsKey("properties.mail.smtp.ssl.enable")) {
properties.setProperty("properties.mail.smtp.ssl.enable", smtpPort)
if (!properties.containsKey("mail.smtp.socketFactory.class")) {
properties.setProperty("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory")
}
Expand Down
6 changes: 3 additions & 3 deletions streamingpro-spark-3.0.0-adaptor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
</dependency>

<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
</dependency>
</dependencies>
</project>

0 comments on commit 7a81b55

Please sign in to comment.