From 57d81a7f6a8c7c8f407b12c72706ed3e07b8b46b Mon Sep 17 00:00:00 2001 From: Xephi59 Date: Wed, 8 Jul 2015 18:15:56 +0200 Subject: [PATCH] Again a change in email --- src/main/java/fr/xephi/authme/SendMailSSL.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/fr/xephi/authme/SendMailSSL.java b/src/main/java/fr/xephi/authme/SendMailSSL.java index ae1a132ce..5c1288d69 100644 --- a/src/main/java/fr/xephi/authme/SendMailSSL.java +++ b/src/main/java/fr/xephi/authme/SendMailSSL.java @@ -46,12 +46,8 @@ public class SendMailSSL { final String subject = Settings.getMailSubject; final String smtp = Settings.getmailSMTP; final String password = Settings.getmailPassword; + final String mailText = Settings.getMailText; final String mail = auth.getEmail(); - String s = Settings.getMailText; - s.replace("", auth.getNickname()); - s.replace("", plugin.getServer().getServerName()); - s.replace("", newPass); - final String mailText = s; Bukkit.getScheduler().runTaskAsynchronously(plugin, new Runnable() { @@ -75,11 +71,9 @@ public class SendMailSSL { message.setSubject(subject); message.setSentDate(new Date()); BodyPart messageBodyPart = new MimeBodyPart(); - Multipart multipart = new MimeMultipart(); - messageBodyPart.setText(mailText); + Multipart multipart = new MimeMultipart(); multipart.addBodyPart(messageBodyPart); - message.setContent(multipart); Transport transport = session.getTransport("smtp"); transport.connect(smtp, acc, password);