?
Solved

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

Posted on 2002-07-16
3
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
flumpman earned 200 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
A solution for Fortify Path Manipulation.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

765 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