|
|
|
@ -14256,8 +14256,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
|
|
|
|
|
|
|
|
public class SMTPAuthenticator extends Authenticator {
|
|
|
|
public class SMTPAuthenticator extends Authenticator {
|
|
|
|
public PasswordAuthentication getPasswordAuthentication() {
|
|
|
|
public PasswordAuthentication getPasswordAuthentication() {
|
|
|
|
String username = "lluis";
|
|
|
|
String username = "acidentes.auchan";
|
|
|
|
String password = "654321";
|
|
|
|
String password = "47Ju6Vb";
|
|
|
|
return new PasswordAuthentication(username, password);
|
|
|
|
return new PasswordAuthentication(username, password);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -14268,8 +14268,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
props.put("mail.smtp.host", "mail2.evolute.pt");
|
|
|
|
props.put("mail.smtp.host", "mail2.evolute.pt");
|
|
|
|
props.put("mail.from", emailFrom);
|
|
|
|
props.put("mail.from", emailFrom);
|
|
|
|
props.put("mail.smtp.auth", "true");
|
|
|
|
props.put("mail.smtp.auth", "true");
|
|
|
|
props.put("mail.smtp.user", "lluis");
|
|
|
|
props.put("mail.smtp.user", "acidentes.auchan");
|
|
|
|
props.put("mail.smtp.password", "654321");
|
|
|
|
props.put("mail.smtp.password", "47Ju6Vb");
|
|
|
|
// Session session1 = Session.getInstance(props);
|
|
|
|
// Session session1 = Session.getInstance(props);
|
|
|
|
Authenticator auth = new SMTPAuthenticator();
|
|
|
|
Authenticator auth = new SMTPAuthenticator();
|
|
|
|
Session session = Session.getDefaultInstance(props, auth);
|
|
|
|
Session session = Session.getDefaultInstance(props, auth);
|
|
|
|
|