iOS Question SMTP AUTH_LOGIN

mmieher

Active Member
Licensed User
Longtime User
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
 

mmieher

Active Member
Licensed User
Longtime User
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

mmieher

Active Member
Licensed User
Longtime User
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:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
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

mmieher

Active Member
Licensed User
Longtime User
Thanks, Erel. How did you disable the SSL verification? Change port 587 to 25 and do not StartTLS?
 
Upvote 0

Similar Threads

Top