Re: sending emails with authentication
Chris Burdess <[email protected]> Thu, 16 Sep 2010 08:27:00 +0100
| Newsgroups | gmane.comp.java.classpath.extensions.javamail |
|---|---|
| Message-ID | <[email protected]> |
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.=20=
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.
--=20
Chris Burdess