PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 27 → EmailStartSession(gSessionSMTP)
EmailStartSession(gSessionSMTP)
Iniciado por Carlos, 23,sep. 2022 22:30 - No hay respuesta
Miembro registrado
26 mensajes
Publicado el 23,septiembre 2022 - 22:30
Hello and thanks in advance for the help

I have been sending e-mails without any issues in my Web-App but all of a sudden I am getting the following error

>>> Reception failed: problem reading on socket.
System error returned by socket:
<Connection reset by the other side (WSAECONNRESET)<<<

Here is my procedure to send the email

Procedure Procedure_Send_an_Email_Using_SMTP()

//This is an Email
AnEmail_or_Text..Sender = "pnotification@mydomain.com"//gsEmail_or_Text_Sender
AnEmail_or_Text..Recipient[1] = "doplex@mydomain.com"//gsEMail_Address
AnEmail_or_Text..Subject = gsSubject
AnEmail_or_Text..Message = gsEmail_Body_Information

// Send the email
IF gsEMail_Address = "" THEN
//Do Nothing
ELSE
IF EmailStartSession(gSessionSMTP) = True THEN
IF EmailSendMessage(gSessionSMTP, AnEmail_or_Text) = False THEN
Info("Failure sending the email. "+ErrorInfo(errMessage))
ELSE
//Info("Email Sent")
END

ELSE
---->(I get the error here) Info("Unable to establish the connection with the SMTP Server. No E-Mail Sent."+ErrorInfo(errMessage))
END


END


I have no idea how to solve this problem.
Perhaps someone has come across this issue and could help me out.

Thank you
Best regards,

Carlos

--
Best regards,

Carlos