Android Question SMTP auth trouble: 503 or 530 error (auth)

peacemaker

Well-Known Member
Licensed User
Hi, All

Suddently B4A projects with SMTP usage stopped to work - servers return 503 like errors (different descriptions), returned immediately, without a timeout. Net. lib now is v.1.75.

The code always used SMTP1.UseSSL = True with port 465, it was OK.

Now:
1) gmail.com: java.lang.RuntimeException: Empty writer returned: 530-5.5.1 Authentication Required. Learn more at https://support.google.com/mail/?p=WantAuthError y3sm2221531ljd.62 - gsmtp


2) another server: "Empty write returned: 503 administrative prohibition. Users in your domain are not allowed to send email without authorization.


Also tried:

B4X:
SMTP1.Initialize(SMTPserver,SMTPport,SMTPlogin,SMTPpass,"SMTP1")
SMTP1.AuthMethod = SMTP1.AUTH_LOGIN
SMTP1.UseSSL = SMTPssl 'here always True
SMTP1.StartTLSMode = True
Here is GMAIL sending error after timout: org.apache.commons.net.smtp.SMTPConnectionClosedException: Connection closed without indication.

Another SMTP server gives just Timeout error.

Any help ?
 
Last edited:

peacemaker

Well-Known Member
Licensed User
OK, Erel, thanks.
But recent months 465 port worked with SSL-true with no problem.
Just today suddently this code returns:
B4X:
Send Error: java.lang.RuntimeException: Empty writer returned: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1  https://support.google.com/mail/?p=WantAuthError g82sm2336062ljg.57 - gsmtp
 

peacemaker

Well-Known Member
Licensed User
What is the correct SMTP server init code sample with authorization ?
 

peacemaker

Well-Known Member
Licensed User
Yes, just a min ago - now GMAIL SMTP works OK.
But the initial SMTP of smtp.mail.ru - does not work anyway, and no such option ...

So, correct auth code sample is needed to try.

UPDATE: seems, the SMTP password was changed - that is the reason of such errors.
But no idea who\when changed it.
 
Top