J Jorge Sanz Member Licensed User Jan 21, 2018 #1 Hello, I have this code for b4a and it does not work for ios, it does not give any error message. Does somebody knows why it could be? B4X: 'MANDAR MAIL REGISTRO Dim mensaje As String smtp.Initialize("smtp.miweb.com", 587, "sss@mivweb.com", "Sxxx", "SMTP") smtp.UseSSL=True smtp.StartTLSMode = True smtp.Subject = "Prueba" mensaje= observaciones.Text smtp.Body = mensaje smtp.Send hd.ToastMessageShow("MAIL ENVIADO",True)
Hello, I have this code for b4a and it does not work for ios, it does not give any error message. Does somebody knows why it could be? B4X: 'MANDAR MAIL REGISTRO Dim mensaje As String smtp.Initialize("smtp.miweb.com", 587, "sss@mivweb.com", "Sxxx", "SMTP") smtp.UseSSL=True smtp.StartTLSMode = True smtp.Subject = "Prueba" mensaje= observaciones.Text smtp.Body = mensaje smtp.Send hd.ToastMessageShow("MAIL ENVIADO",True)
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2018 #2 The transfer mode can be either UseSSL or StartTLSMode. It cannot be both of them. Set UseSSL to false. Where is the MessageSent event? Upvote 0
The transfer mode can be either UseSSL or StartTLSMode. It cannot be both of them. Set UseSSL to false. Where is the MessageSent event?
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2018 #4 Can you post the exact output of Log(LastException) ? Upvote 0
J Jorge Sanz Member Licensed User Jan 21, 2018 #5 Hello It worked for me, setting SMTP.StartTLSMode = False but with another email account. Thank you Upvote 0