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);