Breaking News
Home / Java / Java Issues / Emailer Error : No Content

Emailer Error : No Content

Issue

DEBUG SMTP SENT: RCPT TO:<manvo@gmail.com>
DEBUG SMTP RCVD: 250 Recipient accepted.

Verified Addresses
  manvo@gmail.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 354 End your message with a period.

java.io.IOException: No content
<!> javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:71)
     at javax.activation.DataHandler.writeTo(DataHandler.java:290)
     at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
     at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
     at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
     at com.infuze.service.test.EmailerTest.sendMailViaGodaddy(EmailerTest.java:48)
     at com.infuze.service.test.EmailerTest.main(EmailerTest.java:23)
2011-12-03 00:52:38,546[main]ERROR EmailerTest -Failed to send Email : IOException while sending message;
  nested exception is:
     java.io.IOException: No content – javax.mail.MessagingException: IOException while sending message;
  nested exception is:
     java.io.IOException: No content : IOException while sending message;
  nested exception is:
     java.io.IOException: No content

Answer

Make sure the email body is populate with some text. So verify if the MimePartDataSource has been set correctly.

[pb_builder]

Check Also

Data truncation: Data too long for column – JDBC

Issue Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column ‘columname‘ at row 1     …

Advertisment ad adsense adlogger