Skip to content

Commit

Permalink
默认 STARTTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu committed Dec 2, 2024
1 parent 58e7691 commit 1b7e23e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static SmtpPushProvider loadFromYaml(String name, ConfigurationSection se
var sender = section.getString("sender");
var senderName = section.getString("name");
var receivers = section.getStringList("receiver");
var encryption = Encryption.valueOf(section.getString("encryption").toUpperCase(Locale.ROOT));
var encryption = Encryption.valueOf(section.getString("encryption", "STARTTLS").toUpperCase(Locale.ROOT));
var sendPartial = section.getBoolean("sendPartial");
Config config = new Config(section.getString("host"),
section.getInt("port"), auth, username, password,
Expand Down

0 comments on commit 1b7e23e

Please sign in to comment.