iOS Question sending mail smtp

Jorgelcr

Active Member
Licensed User
Longtime User
Hello,
I have the following code for b4a and it works fine.
I have implemented it in b4i and it does not send mail.
It gives me an error:
unsupported login mechanism


B4X:
SMTP.Initialize("smtp.serxxx.es", 465, "info@asxxx.es", "xxx", "SMTP")
                
SMTP.UseSSL=True
SMTP.StartTLSMode = False
SMTP.To.Add(example@gmail.com)
                
SMTP.Subject = "Registro APP"
mensaje="Bienvenido "
                
SMTP.Body = mensaje
            
SMTP.Send


can anybody help me?
 

Semen Matusovskiy

Well-Known Member
Licensed User
Net library for Android is not absolutelly equal to iNet under IOS. For example, under B4A there is AuthMethod unlike B4i

Try to set SMTP.DebugLogs = True and look a log. For example, for my mailserver:

At least, it's visible, what a mail server supports.
 
Upvote 0

Ebic

Member
Licensed User
Longtime User
First step is to find which authentication methods are supported by your email server. If you have control over the server then enable one of the two methods posted above.
Suppose my server supports 250-AUTH LOGIN how to proceed for sending?
thank you
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…