Hi all. Somehow gmail is not playing nice. I am trying to send an email to myself from my B4J app.
Code:
SMTP.Initialize("smtp.gmail.com", 587, "j-----@gmail.com", "--Password--", "SMTP")
SMTP.StartTLSMode = True
SMTP.To.Add("j-----@gmail.com")
SMTP.Subject = "This is the subject"
SMTP.Body = "This is the message body."
SMTP.Send
java.lang.RuntimeException: Empty writer returned: 530-5.7.0 Authentication Required. Learn more at
530 5.7.0 https://support.google.com/mail/?p=WantAuthError l186sm3891715pge.31 - gsmtp
Any ideas why it fails?
Note that I did turn on: Access for less secure apps setting has been turned on.
Thnx for looking
Code:
SMTP.Initialize("smtp.gmail.com", 587, "j-----@gmail.com", "--Password--", "SMTP")
SMTP.StartTLSMode = True
SMTP.To.Add("j-----@gmail.com")
SMTP.Subject = "This is the subject"
SMTP.Body = "This is the message body."
SMTP.Send
java.lang.RuntimeException: Empty writer returned: 530-5.7.0 Authentication Required. Learn more at
530 5.7.0 https://support.google.com/mail/?p=WantAuthError l186sm3891715pge.31 - gsmtp
Any ideas why it fails?
Note that I did turn on: Access for less secure apps setting has been turned on.
Thnx for looking