Re: Cannot send mail from servlet

2007-07-21 Thread Juha Laiho
Fabio Rossi wrote: Here's sendMail method: Properties props = new ConfigLoader().loadConfigFile(); String prop; prop=(String)props.get(summary_header); if(prop!=null) summary=prop+\n+summary;

Cannot send mail from servlet

2007-07-17 Thread Fabio Rossi
Hi. I'll try to explain my problem, that is about sending an email with JavaMail API from a servlet. Anyway, it seems to be a more general problem i'm having with servlet. I'm using Tomcat 5.0. I've a servlet that process a request, writes to a database some info and then send a email with a

Re: Cannot send mail from servlet

2007-07-17 Thread David Smith
Seems to me the important part of this is the sendMail method. Could you post that? --David Fabio Rossi wrote: Hi. I'll try to explain my problem, that is about sending an email with JavaMail API from a servlet. Anyway, it seems to be a more general problem i'm having with servlet. I'm

Re: Cannot send mail from servlet

2007-07-17 Thread Fabio Rossi
Here's sendMail method: Properties props = new ConfigLoader().loadConfigFile(); String prop; prop=(String)props.get(summary_header); if(prop!=null) summary=prop+\n+summary; prop= (String)

Re: Cannot send mail from servlet

2007-07-17 Thread hanasaki
Running in tomcat 6.x? Any chance there is a jndi and smtp config setup in tomcat that is messing with this? Post the code for the sendMail method and any custom code it calls. review your web.xml and tomcat configurations for smtp related stuff. David Smith wrote: Seems to me the important