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, "contactoweb@grupopadilla.com.mx", "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("atencionclientes.gp@grupopadilla.com.mx")
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
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, "contactoweb@grupopadilla.com.mx", "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("atencionclientes.gp@grupopadilla.com.mx")
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