Changeset 989 for java/installer2/src/net/oni2
- Timestamp:
- Mar 29, 2014, 11:56:52 PM (11 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r924 r989 1 1 appname=AE Installer 2 2 appversion=.1 72 appversion=.18 -
java/installer2/src/net/oni2/aeinstaller/gui/reporter/ReporterDialog.java
r890 r989 14 14 import javax.activation.FileDataSource; 15 15 import javax.mail.AuthenticationFailedException; 16 import javax.mail.Authenticator;17 16 import javax.mail.Message; 18 17 import javax.mail.Message.RecipientType; 19 18 import javax.mail.MessagingException; 20 19 import javax.mail.Multipart; 21 import javax.mail.PasswordAuthentication;22 20 import javax.mail.Session; 23 21 import javax.mail.Transport; … … 69 67 70 68 private final String SMTP_HOST_NAME = "mail.illy.bz"; 71 private final String SMTP_AUTH_USER = "aei_reports@oni2.net";72 private final String SMTP_AUTH_PWD = "mb0NkjHuWrDFfMDe2BkUDU2Dknkkvq";73 69 private final String EMAIL_SUBJECT = "AE support request"; 74 70 private final String EMAIL_TO = "ae-support@oni2.net"; … … 104 100 } 105 101 106 private class SMTPAuthenticator extends Authenticator {107 public PasswordAuthentication getPasswordAuthentication() {108 String username = SMTP_AUTH_USER;109 String password = SMTP_AUTH_PWD;110 return new PasswordAuthentication(username, password);111 }112 }113 114 102 @DoInBackground(progressMessage = "send.title", cancelable = false, indeterminateProgress = true) 115 103 private boolean send(final BackgroundEvent evt) { … … 124 112 Properties props = new Properties(); 125 113 props.put("mail.smtp.host", SMTP_HOST_NAME); 126 props.put("mail.smtp.auth", "true"); 127 Authenticator auth = new SMTPAuthenticator(); 128 Session session = Session.getDefaultInstance(props, auth); 114 Session session = Session.getDefaultInstance(props); 129 115 130 116 session.setDebug(false); … … 184 170 } else { 185 171 msgText.append("Installation.log does not exist!\n"); 172 } 173 174 // daodan.ini 175 f = new File(Paths.getEditionBasePath(), "daodan.ini"); 176 if (f.exists()) { 177 mimeBody = new MimeBodyPart(); 178 source = new FileDataSource(f); 179 mimeBody.setDataHandler(new DataHandler(source)); 180 mimeBody.setFileName("daodan.ini"); 181 multipart.addBodyPart(mimeBody); 182 } else { 183 msgText.append("daodan.ini does not exist!\n"); 186 184 } 187 185 -
java/installer2/src/net/oni2/aeinstaller/localization/ReporterDialog.properties
r889 r989 12 12 <li>AEI's aei_output.log, updater_output.log, Initialization.log, Installation.log</li>\ 13 13 <li>Oni's startup.txt and debugger.txt</li>\ 14 <li>Daodan's daodan.ini</li>\ 14 15 <li>A list of all files below your AE/ folder</li>\ 15 16 </ul>None of this will include any personal data.
Note:
See TracChangeset
for help on using the changeset viewer.