Hi,

I am able to use this snippet in a standalone java app and it works fine. 

When I added this into the taskBean.java (bean for handling actions 
saveandclose in task.jsp) ,

  public String saveAndClose() {

:
:

        try{
            SimpleEmail email=new SimpleEmail();
           
            email.setSubject("NEW TASK TEST);
            email.setFrom("[EMAIL PROTECTED]");
            email.addTo("[EMAIL PROTECTED]");
            email.setHostName("mail.abc.com");
            email.setMsg("TESTING a NEW TASK SUBMISSION"));
            email.send();
        }
        catch(Exception e){
            e.printStackTrace();
        }       

:
:

it does not send any mail. 

Any clue is apprreciated. 

The only difference between standalone and jbpm env. is that the beans are 
deployed under JBOSS  application server.   coudl this be an issue?


Thanks
-Siv


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

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


-------------------------------------------------------
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&kid=107521&bid=248729&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to