iOS Question smtp

Manolete

Member
Licensed User
Hello!
Mybe I am missing something, but I cannot realize what is it.

I cannot send SMTP Email from b4i
I declare in Process_Globals of the Class the Public Variable "Public smtp as SMTP"

In my Application_Start I initialize the smtp
Like this :
contacto.smtp.Initialize("smtp.uservers.net", 587, "[email protected]", "passwd", "SMTP")

Then in the page code I try to send the message but it takes forever sending message and never send it actually.
Code to send the message

smtp.To.add("[email protected]")
smtp.subject = "Contacto desde App Grupo Padilla iOS"
Dim cuerpo As String
cuerpo = "Nombre: " & TextField1.Text & CRLF
cuerpo = cuerpo & "Empresa: " & TextField2.Text & CRLF
cuerpo = cuerpo & "Comentarios: " & TextView1.Text
smtp.Body= cuerpo
smtp.Send

Can you please help me?

I appreciate it
Thanks
Manuel
 

Manolete

Member
Licensed User
Never Mind!!
The only problem was the CRLF character that cannot be sent in the email

I replace it with Spaces and everything goes fine now.
Regards,
Manuel
 
Upvote 0
Top