modified error code returned from RevDotNet call so that it can be logged

This commit is contained in:
Infineon\StieberD 2025-03-19 12:40:30 -07:00 committed by Stieber Daniel (CSC FI SPS MESLEO)
parent 33cd469523
commit 175869df7d

View File

@ -57,7 +57,10 @@ Service SendEmail(FromAddress, ToAddress, Subject, Body)
objEmailClient = Create_Class.Net(DotNetHandle, "System.Net.Mail.SmtpClient", 0, EmailServer, 'System.String')
If Not(Get_Status(ErrorCode)) then
rv = Send_Message.Net(objEmailClient, 'Send', objEmailMessage, 'RevDotNet', 0)
If Get_Status(ErrorCode) then ErrorMessage = 'Error in ':Service:' service. Get_Status response: ':ErrorCode
If Get_Status(ErrorCode) then
Convert @FM to ' ' in ErrorCode
ErrorMessage = 'Error in ':Service:' service. Get_Status response: ':ErrorCode
end
Free_Class.Net(objEmailClient)
end else
ErrorMessage = 'Error in ':Service:' service. Get_Status response: ':ErrorCode