B4J Question Sending Mail to port 587

Discussion in 'B4J Questions' started by swissmade, Apr 9, 2015.

  1. swissmade

    swissmade Active Member Licensed 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??
     
  2. giga

    giga Well-Known Member Licensed 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
     
  3. swissmade

    swissmade Active Member Licensed User

    Hi Giga
    Will try port 26 otherwise how to solve the authentication issue??
     
  4. giga

    giga Well-Known Member Licensed User

  5. swissmade

    swissmade Active Member Licensed User

  6. giga

    giga Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice