mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-27 20:57:35 +01:00
Again a change in email
This commit is contained in:
parent
32f0ce00df
commit
57d81a7f6a
@ -46,12 +46,8 @@ public class SendMailSSL {
|
|||||||
final String subject = Settings.getMailSubject;
|
final String subject = Settings.getMailSubject;
|
||||||
final String smtp = Settings.getmailSMTP;
|
final String smtp = Settings.getmailSMTP;
|
||||||
final String password = Settings.getmailPassword;
|
final String password = Settings.getmailPassword;
|
||||||
|
final String mailText = Settings.getMailText;
|
||||||
final String mail = auth.getEmail();
|
final String mail = auth.getEmail();
|
||||||
String s = Settings.getMailText;
|
|
||||||
s.replace("<playername>", auth.getNickname());
|
|
||||||
s.replace("<servername>", plugin.getServer().getServerName());
|
|
||||||
s.replace("<generatedpass>", newPass);
|
|
||||||
final String mailText = s;
|
|
||||||
|
|
||||||
Bukkit.getScheduler().runTaskAsynchronously(plugin, new Runnable() {
|
Bukkit.getScheduler().runTaskAsynchronously(plugin, new Runnable() {
|
||||||
|
|
||||||
@ -75,11 +71,9 @@ public class SendMailSSL {
|
|||||||
message.setSubject(subject);
|
message.setSubject(subject);
|
||||||
message.setSentDate(new Date());
|
message.setSentDate(new Date());
|
||||||
BodyPart messageBodyPart = new MimeBodyPart();
|
BodyPart messageBodyPart = new MimeBodyPart();
|
||||||
Multipart multipart = new MimeMultipart();
|
|
||||||
|
|
||||||
messageBodyPart.setText(mailText);
|
messageBodyPart.setText(mailText);
|
||||||
|
Multipart multipart = new MimeMultipart();
|
||||||
multipart.addBodyPart(messageBodyPart);
|
multipart.addBodyPart(messageBodyPart);
|
||||||
|
|
||||||
message.setContent(multipart);
|
message.setContent(multipart);
|
||||||
Transport transport = session.getTransport("smtp");
|
Transport transport = session.getTransport("smtp");
|
||||||
transport.connect(smtp, acc, password);
|
transport.connect(smtp, acc, password);
|
||||||
|
Loading…
Reference in New Issue
Block a user