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


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:

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?


Who is Participating?

Improve company productivity with a Business Account.Sign Up

flumpmanConnect With a Mentor Commented:
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.

keithedwardAuthor Commented:
Also, Is there anyway to tell javamail to send the message even if there are invalid email addresses?

keithedwardAuthor Commented:
yeah, I had a \n where it shouldn't have been ... thanks...

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.