Bug? jNet 1.76 SMTP raises error

mindful

Active Member
Licensed User
B4X:
java.lang.RuntimeException: Empty writer returned: 503 5.5.1 MAIL first. f140sm5644411wmd.27 - gsmtp
    at anywheresoftware.b4a.net.SMTPWrapper$1.run(SMTPWrapper.java:299)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

I use the gmail smtp with StartTLS. With jNet 1.75 it works without error.
 

mindful

Active Member
Licensed User
I am using the smtp class inside a background worker as private, I set all the properties in the initialize method of the background worker and create the message (recipient, body) and send it in another thread.

The thing is that if I use jNet 1.75 no errors are thrown and the message is sent, if I use 1.76 the above error raises so it must be of something that changed ... or from something i am not doing right :confused:
 
Top