classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-javamail] sending emails with authentication


From: Chris Burdess
Subject: Re: [Classpathx-javamail] sending emails with authentication
Date: Thu, 16 Sep 2010 08:27:00 +0100

Daniel Rindt wrote:
> sorry to reply again, but i can't solve the problem. The mail api is not
> giving me any output. The Emailhoster (Rackspace) is very motivated to
> find the problem, but unfortunately it was still not possible. I play
> around with the logging, watch the logs but i can't see anything from
> the mail api stuff. session.setDebugOut(new PrintStream(new
> File("/var/tmp/javamail.out"))); produces only a file with zero bytes. 

The PrintStream(File) constructor specifically says that it won't flush the 
underlying stream. You will need to call flush manually on that PrintStream, or 
use the OutputStream constructor.
-- 
Chris Burdess





reply via email to

[Prev in Thread] Current Thread [Next in Thread]