Assign remote status in script variable on mail object

Discussion created by Olgun_Onur_Ozmen on Mar 8, 2018
Latest reply on Mar 8, 2018 by Wolfgang_Brueckler_1288
I have a filter object. I'm writing a "remote status" according to the result. I trigger the mail object according to the returning retcode.
I want to show this "remote status" in the mail object to explain the errors.
How can i assign  "remote status" in script varaiable on mail object ? do you have such a function ? 

detailed display screen