Solved

How do I get rid of header info from javamail messages?

Posted on 2002-07-16
3
175 Views
Last Modified: 2013-11-24
Hello,

I am using javamail from a jsp to send an email to multiple people (To and Cc).

Works fine, except that the emails are received with the following at the beginning of the body of the email:

Cc: john.doe@nist.gov
Cc: sue.doe@nist.gov
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

How can I get rid of at least the Mime and Content headers fro the body of the text message?

Thanks
Keith

0
Comment
Question by:keithedward
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
flumpman earned 50 total points
ID: 7157524
Those headers should not be in the body part of the message but in the header part of the message.

I haven't experienced any such issues.  If you post your code and the resulting message (full source - including headers) then we may be able to track down the problem.

--
flumpman
0
 

Author Comment

by:keithedward
ID: 7157579
Also, Is there anyway to tell javamail to send the message even if there are invalid email addresses?

0
 

Author Comment

by:keithedward
ID: 7157582
yeah, I had a \n where it shouldn't have been ... thanks...

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now