try{
  |             SimpleEmail email=new SimpleEmail();
  |             final String 
nomeEtapa=context.getAction().getEvent().getGraphElement().getName();
  |             email.setSubject("Etapa completada: "+nomeEtapa);
  |             email.setFrom("[EMAIL PROTECTED]");
  |             email.addTo("[EMAIL PROTECTED]");
  |             email.setHostName("120.120.1.127");
  |             email.setMsg("Etapa completada: "+nomeEtapa+"\n"+
  |                             "Projeto: "+context.getVariable("projeto")+"\n"+
  |                             "Caso de uso: 
"+context.getVariable("casoDeUso"));
  |             email.send();
  |         }
  |         catch(Exception e){
  |             e.printStackTrace();
  |         }
I extracted this sample from a academic research I'm doing. You should add 
javamail and commons mail to you project.

Good luck,

Walter MourĂ£o

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946452#3946452

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946452


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to