B4J Question Sending Mail to port 587

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi all,

I use my Provider to send mails.
The only way to get this done is via Port 25.
When I set the port to 587 (the provider uses) I get a error.
I also need StartTLS so I set this on.

java.lang.RuntimeException: Empty writer returned: 503-All RCPT commands were rejected with this error:
503-503 sender not yet given
503 valid RCPT command must precede DATA
at anywheresoftware.b4a.net.SMTPWrapper$1.run(SMTPWrapper.java:282)
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:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Error sending message: (RuntimeException) java.lang.RuntimeException: Empty writer returned: 503-All RCPT commands were rejected with this error:
503-503 sender not yet given
503 valid RCPT command must precede DATA

Change port back to 25 and StartTLS off, I can send the mails.
Any help for this??
 

Swissmade

Well-Known Member
Licensed User
Longtime User
As you may know. 587 is a secure port SSL or TLS. 25 is not secure.
"503 valid RCPT command must precede DATA" relates to a authentication issue.
the Outgoing Mail Server (SMTP) needs authentication

If allowed you could try port 26
Hi Giga
Will try port 26 otherwise how to solve the authentication issue??
 
Upvote 0
Top