• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error in sending mail  RSS feed

 
Mahesh Shiwani
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all,
i am trying to send mail from my java application. but getting follwing error.. no clue why it is here..... here is log

java.lang.NullPointerException
at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:915)
at javax.mail.internet.MimeBodyPart.setText(MimeBodyPart.java:812)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1333)
at javax.mail.internet.MimeMessage.setText(MimeMessage.java:1321)
Need your help....
Mahesh :-(
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems likely to me that you are passing in a null reference to setText.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the "Other Java API's" forum where the mail package gets discussed quite often.

Please post your replies there. Thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!