M mindful Active Member Licensed User Nov 12, 2017 #1 Code: Copy 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.
Code: Copy 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.
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2017 #2 Works fine here. Tested with this code: Code: Copy smtp.Initialize(smtpServer, 587, user, password, "smtp") smtp.StartTLSMode = True smtp.To.Add("xxx") smtp.Subject = "test" Wait For (smtp.Send) smtp_MessageSent(Success As Boolean) Log(Success)
Works fine here. Tested with this code: Code: Copy smtp.Initialize(smtpServer, 587, user, password, "smtp") smtp.StartTLSMode = True smtp.To.Add("xxx") smtp.Subject = "test" Wait For (smtp.Send) smtp_MessageSent(Success As Boolean) Log(Success)
M mindful Active Member Licensed User Nov 13, 2017 #3 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
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
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2017 #4 Try to reproduce it in a small project. It will be easier to debug. Are you setting the Sender property?
Try to reproduce it in a small project. It will be easier to debug. Are you setting the Sender property?
M mindful Active Member Licensed User Nov 13, 2017 #5 Erel said: Are you setting the Sender property? Click to expand... Yes, only in the initialize method of the background worker ... I'll try to setup a small project that reproduces it ...
Erel said: Are you setting the Sender property? Click to expand... Yes, only in the initialize method of the background worker ... I'll try to setup a small project that reproduces it ...
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2017 #6 The change in v1.76 is related to the sender property.
M mindful Active Member Licensed User Nov 13, 2017 #7 In your above example you are not setting the sender ... i am setting like : My Name <[email protected]> is there any other format ?
In your above example you are not setting the sender ... i am setting like : My Name <[email protected]> is there any other format ?
Erel B4X founder Staff member Licensed User Longtime User Nov 13, 2017 #8 Should be fixed in v1.77: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-545065
Should be fixed in v1.77: https://www.b4x.com/android/forum/threads/updates-to-internal-libaries.48274/#post-545065