mmieher Active Member Licensed User Longtime User Aug 4, 2016 #1 Erel, Any plans to implement this in B4i? I apparently need it to log on to our Exchange Server. This works in B4a: B4X: SMTP1.StartTLSMode = True SMTP1.UseSSL = False SMTP1.AuthMethod = SMTP1.AUTH_LOGIN Marc
Erel, Any plans to implement this in B4i? I apparently need it to log on to our Exchange Server. This works in B4a: B4X: SMTP1.StartTLSMode = True SMTP1.UseSSL = False SMTP1.AuthMethod = SMTP1.AUTH_LOGIN Marc
Erel B4X founder Staff member Licensed User Longtime User Aug 5, 2016 #2 It should choose this authentication method automatically based on the server response. Do you get any error message? Upvote 0
It should choose this authentication method automatically based on the server response. Do you get any error message?
mmieher Active Member Licensed User Longtime User Aug 5, 2016 #3 Yes -- <B4IExceptionWrapper: Error Domain=NSOSStatusErrorDomain Code=-9807 "(null)"> Here is the code: B4X: ' SMTP1.Initialize("smtp.gmail.com", 465, "user@gmail.com", "password", "SMTP") SMTP1.Initialize("owa.wvhops.com", 587, "spot@wvhops.com", "password", "SMTP") 'SMTP1.UseSSL = True SMTP1.StartTLSMode = True SMTP1.UseSSL = False ' SMTP1.To.Add("orders@wvhops.com") SMTP1.To.Add("mmieher@gmail.com") ' SMTP1.BCC.Add("mmieher@gmail.com") SMTP1.Subject = "Spot Hops: INCOMING!" Marc Upvote 0
Yes -- <B4IExceptionWrapper: Error Domain=NSOSStatusErrorDomain Code=-9807 "(null)"> Here is the code: B4X: ' SMTP1.Initialize("smtp.gmail.com", 465, "user@gmail.com", "password", "SMTP") SMTP1.Initialize("owa.wvhops.com", 587, "spot@wvhops.com", "password", "SMTP") 'SMTP1.UseSSL = True SMTP1.StartTLSMode = True SMTP1.UseSSL = False ' SMTP1.To.Add("orders@wvhops.com") SMTP1.To.Add("mmieher@gmail.com") ' SMTP1.BCC.Add("mmieher@gmail.com") SMTP1.Subject = "Spot Hops: INCOMING!" Marc
Erel B4X founder Staff member Licensed User Longtime User Aug 7, 2016 #4 Does your mail server support non-ssl connection? If yes then try it on the non-ssl port. This issue might be related to an unknown certificate. Upvote 0
Does your mail server support non-ssl connection? If yes then try it on the non-ssl port. This issue might be related to an unknown certificate.
mmieher Active Member Licensed User Longtime User Aug 8, 2016 #5 As far as I can tell, Exchange Server 2016 insists on TLS. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 8, 2016 #6 Is it accessible over the internet? If yes then you can create a temporary account for me and I'll test it. Upvote 0
Is it accessible over the internet? If yes then you can create a temporary account for me and I'll test it.
mmieher Active Member Licensed User Longtime User Aug 8, 2016 #7 Thank, Erel. The server is owa.wvhops.com. Your user is "erel@wvhgc.com". I know the email domain and server domain names are different. Long story. Marc Last edited by a moderator: Aug 9, 2016 Upvote 0
Thank, Erel. The server is owa.wvhops.com. Your user is "erel@wvhgc.com". I know the email domain and server domain names are different. Long story. Marc
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2016 #8 I tried various settings and all of them failed. I was able to get a bit further by disabling the SSL verification but then it failed with a different error (504 5.7.4 Unrecognized authentication type). If you have access to the server configuration you can try to disable chunking and binary mime: https://adaptivethinking.wordpress.com/2010/12/21/smtp-esmtp-and-the-bdat-baddie/ It might be related. Upvote 0
I tried various settings and all of them failed. I was able to get a bit further by disabling the SSL verification but then it failed with a different error (504 5.7.4 Unrecognized authentication type). If you have access to the server configuration you can try to disable chunking and binary mime: https://adaptivethinking.wordpress.com/2010/12/21/smtp-esmtp-and-the-bdat-baddie/ It might be related.
mmieher Active Member Licensed User Longtime User Aug 9, 2016 #9 Thanks, Erel. How did you disable the SSL verification? Change port 587 to 25 and do not StartTLS? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 10, 2016 #10 mmieher said: How did you disable the SSL verification? Click to expand... I've disabled it in the library code. Upvote 0
mmieher said: How did you disable the SSL verification? Click to expand... I've disabled it in the library code.