R Ran Espensen Member Licensed User Longtime User Jan 6, 2019 #1 Fore over a year ago a used this simular code to this, but now i get a send error?? 'SMTPExtras1.Initialize("smtp.gmail.com", 465, "xxx.xxx@gmail.com", "password", "SMTPExtras1") 'SMTPExtras1.UseSSL = True. 'SMTPExtras1.To.Add("Reciever@gmail.com") 'SMTPExtras1.Subject = "This is TxtHeader" 'SMTPExtras1.Body = "This is TxtBody" 'SMTPExtras1.AddHeader("MyField", "MyValue:" & DateTime.Now) 'SMTPExtras1.Send ??? Regards Ran
Fore over a year ago a used this simular code to this, but now i get a send error?? 'SMTPExtras1.Initialize("smtp.gmail.com", 465, "xxx.xxx@gmail.com", "password", "SMTPExtras1") 'SMTPExtras1.UseSSL = True. 'SMTPExtras1.To.Add("Reciever@gmail.com") 'SMTPExtras1.Subject = "This is TxtHeader" 'SMTPExtras1.Body = "This is TxtBody" 'SMTPExtras1.AddHeader("MyField", "MyValue:" & DateTime.Now) 'SMTPExtras1.Send ??? Regards Ran
DonManfred Expert Licensed User Longtime User Jan 6, 2019 #2 Ran Espensen said: but now i get a send error?? Click to expand... Really, did you? Great you are HIDING the Error message so we could help. Upvote 0
Ran Espensen said: but now i get a send error?? Click to expand... Really, did you? Great you are HIDING the Error message so we could help.
R Ran Espensen Member Licensed User Longtime User Jan 6, 2019 #3 msg from this sub , Error sending message, and from google Login attemt is blocked ?? Ran Sub SMTP_MessageSent(Success As Boolean) Log(Success) If Success Then ToastMessageShow("Message sent successfully", True) Else ToastMessageShow("Error sending message", True) Log(LastException.Message) End If End Sub Upvote 0
msg from this sub , Error sending message, and from google Login attemt is blocked ?? Ran Sub SMTP_MessageSent(Success As Boolean) Log(Success) If Success Then ToastMessageShow("Message sent successfully", True) Else ToastMessageShow("Error sending message", True) Log(LastException.Message) End If End Sub
DonManfred Expert Licensed User Longtime User Jan 6, 2019 #4 https://www.b4x.com/android/forum/threads/b4x-sending-emails-with-gmail-rest-api.81736/ Upvote 0
R Ran Espensen Member Licensed User Longtime User Jan 6, 2019 #5 and from log org.apache.commons.net.smtp.SMTPConnectionClosedException: Connection closed without indication. Upvote 0
and from log org.apache.commons.net.smtp.SMTPConnectionClosedException: Connection closed without indication.
R Ran Espensen Member Licensed User Longtime User Jan 6, 2019 #6 https://www.b4x.com/android/forum/threads/b4x-sending-emails-with-gmail-rest-api.81736/ do you say it is no longer posible to send via SMTP ?? Upvote 0
https://www.b4x.com/android/forum/threads/b4x-sending-emails-with-gmail-rest-api.81736/ do you say it is no longer posible to send via SMTP ??
Erel B4X founder Staff member Licensed User Longtime User Jan 7, 2019 #7 You need to configure your Gmail account to allow access from less secure apps. Upvote 0