my app cant connect to smtp.gmail.com
here is my code:
after i got this error msg:
(SocketTimeoutException) java.net.SocketTimeoutException: failed to connect to smtp.gmail.com/2404:6800:4003:c01::6d (port 587) after 90000ms
please help me.
here is my code:
B4X:
Private user = "***@gmail.com", password = "*****" As String
Private smtpServer = "smtp.gmail.com" As String
Private smtpPort = 587 As Int
Private SMTP As SMTP
B4X:
SMTP.Initialize(smtpServer, smtpPort, user, password, "smtp")
SMTP.StartTLSMode = True
B4X:
SMTP.To.Add("***@gmail.com")
SMTP.Subject = "Test."
SMTP.Body = ""
SMTP.send
after i got this error msg:
(SocketTimeoutException) java.net.SocketTimeoutException: failed to connect to smtp.gmail.com/2404:6800:4003:c01::6d (port 587) after 90000ms
please help me.