• Post Reply Bookmark Topic Watch Topic
  • New Topic

Controlling the SMTP output

 
Ganapathi Srinivasan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using JavaMail v1.3.1 and in my test code, I have the following:

session.setDebug(true);

I re-direct the System.out to a file onto my file system.

But when I run the program, along with the SMTP commands, in 1.3.1, I am getting a dump of the email message that I am sending. Things get messier when I have attachments in the email.

Is there a way in which I can turn-off the email dump in the SMTP debug log?

Thanks in Advance
Ganapathi.
[ August 23, 2004: Message edited by: Ganapathi Raman ]
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. All that setDebug(true) does is echo the SMTP messages which include the entire contents of your email.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!