M Manolete Member Licensed User Oct 12, 2017 #1 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
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
M Manolete Member Licensed User Oct 12, 2017 #2 I always get this error: "The connection to the server was interrupted." Thanks, Manuel Upvote 0
M Manolete Member Licensed User Oct 12, 2017 #3 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
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