Solved

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

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
hibernate insert example 13 28
arguments to jar 5 26
hibernate example for saving data 19 37
jsp login check 12 31
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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 …

776 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