wood burning stoves 2.0*
The moose likes Other JSE/JEE APIs and the fly likes mime.txt image attached when MimeMessage object used for email in java 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "mime.txt image attached when MimeMessage object used for email in java 7" Watch "mime.txt image attached when MimeMessage object used for email in java 7" New topic
Author

mime.txt image attached when MimeMessage object used for email in java 7

sandeepdamodar suryavanshi
Greenhorn

Joined: Jul 07, 2005
Posts: 2
Hi,

I am trying to send email that contains html content and images. I am able to send email using MimeMessage object. I can see images are coming correctly inside email body. This functionality is working fine in jdk 1.6.0_30 but when I upgraded java to jdk 1.7.0_03 I can see one attachment namely mime.txt along with every email. When I opened that file, it's was showing binary data.
I am not sure why this attachment coming in email and why with jdk 1.7 version?

Do you have any idea?
 
Consider Paul's rocket mass heater.
 
subject: mime.txt image attached when MimeMessage object used for email in java 7
 
Similar Threads
Unable to send mail via Web Service
Not able to attch the document correctly in the email using java code
setting content in email with attachment JavaMail
Sending HTML e-mail with enbedded images
javamail API question: How to send content type in message body when using multiparts