javax.mail.MessagingException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.FileNotFoundException: /drawable:/2130837597: open failed: ENOENT (No such file or directory) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:676) at javax.mail.Transport.send0(Transport.java:189) at javax.mail.Transport.send(Transport.java:118) at io.farooq.check.GMailSender.sendMail(GMailSender.java:81) at io.farooq.check.MainActivity$1$1.run(MainActivity.java:74) at java.lang.Thread.run(Thread.java:841) Caused by: java.io.FileNotFoundException: /drawable:/2130837597: open failed: ENOENT (No such file or directory) at libcore.io.IoBridge.open(IoBridge.java:409) at java.io.FileInputStream.<init>(FileInputStream.java:78) at javax.activation.FileDataSource.getInputStream(FileDataSource.java:110) at javax.activation.DataHandler.writeTo(DataHandler.java:318) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:874) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:444) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:102) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:897) at javax.activation.DataHandler.writeTo(DataHandler.java:330) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1403) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1745) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:636) ... 5 more Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at libcore.io.IoBridge.open(IoBridge.java:393) ... 17 more

Users with the same issue

Indri Yunita
63 times, last one,
gamebusterz
1 times, last one,
maxxi
8 times, last one,
bmacedo
1 times, last one,
filpgame
1 times, last one,
42 more bugmates