Solved

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

Posted on 2002-07-16
3
177 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
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 …

867 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

21 Experts available now in Live!

Get 1:1 Help Now