This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax . mail. internet. ParseException  RSS feed

 
Suresh Vempati
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I get this exception when I use Transport.send(Mimemsg) method.

javax.mail.internet.ParseException
at javax.mail.internet.ContentType.<init>(ContentType.java:72)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1016)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1841)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1822)
at javax.mail.Transport.send(Transport.java:80)
at com.gm.usbp.ld.common.utils.EmailUtility.sendMail(EmailUtility.java:371)

I get this exception only when an vacation response(auto response) comes from Yahoo.
and the content is shown as com.sun.mail.util.SharedByteArrayInputStream@f7757c.

We are able to parse the mime object (vacation respone from yahoo) and get all the details.then we modify the mime object by setting To address and then again transport the message to SMTP.

Can any one help me please.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!