|
|
|
@ -14109,7 +14109,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
System.out.println("USER MAIL NEXT FASE : " + u.getLogin() + " ; " + u.getEmail());
|
|
|
|
System.out.println("USER MAIL NEXT FASE : " + u.getLogin() + " ; " + u.getEmail());
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sendEmail(u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
//sendEmail(u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
|
|
|
|
sendEmailWithPdf(a, u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex1)
|
|
|
|
catch(Exception ex1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -14147,7 +14148,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
texto_email += "<p style='text-align: justify; font-family: arial, sans-serif'>Cumprimentos.</p>";
|
|
|
|
texto_email += "<p style='text-align: justify; font-family: arial, sans-serif'>Cumprimentos.</p>";
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sendEmail(ac.getEmail_superior_hierarquico(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
sendEmailWithPdf(a, ac.getEmail_superior_hierarquico(), Global.ENDERECO_ENVIO, assunto, texto_email );
|
|
|
|
|
|
|
|
//sendEmail(ac.getEmail_superior_hierarquico(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -14175,7 +14177,8 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
texto_email += "<p style='text-align: justify; font-family: arial, sans-serif'>SIPRP </p>";
|
|
|
|
texto_email += "<p style='text-align: justify; font-family: arial, sans-serif'>SIPRP </p>";
|
|
|
|
try
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
sendEmail(u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
//sendEmail(u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
|
|
|
|
sendEmailWithPdf(a, u.getEmail(), Global.ENDERECO_ENVIO, assunto, texto_email);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(Exception ex)
|
|
|
|
catch(Exception ex)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -14397,7 +14400,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean {
|
|
|
|
String pdfname = "Analise" + a.getAnalise_nr();
|
|
|
|
String pdfname = "Analise" + a.getAnalise_nr();
|
|
|
|
pdfPart.setFileName(pdfname);
|
|
|
|
pdfPart.setFileName(pdfname);
|
|
|
|
multipart.addBodyPart(pdfPart,1);
|
|
|
|
multipart.addBodyPart(pdfPart,1);
|
|
|
|
|
|
|
|
|
|
|
|
msg.setContent(multipart);
|
|
|
|
msg.setContent(multipart);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Transport.send(msg);
|
|
|
|
// Transport.send(msg);
|
|
|
|
Transport t;
|
|
|
|
Transport t;
|
|
|
|
t = session.getTransport( "smtp" );
|
|
|
|
t = session.getTransport( "smtp" );
|
|
|
|
|