Email ViewValue

hi guys, thank you in advance for all the help you are giving me.
i am modifying the email_sending event and everything is working except the content.
I want the ViewValue to be written in the content and not the CurrentValue, i.e. the value that I see on the display.

$valore= $this->idsiapafis->ViewValue;
$mail= $this->mailto->CurrentValue;
$email->Sender = "noreply@email.com";
$email->Recipient = $mail;
$email->Subject = "added new record"; // Change subject
$email->Content .= "New recod : " .$detenut;

i can get the CurrentValue but not the ViewValue

You should always refer to the code example in Email_Sending server event.

if i use
$myValue = $args[“rsnew”][“MyField”];
returns me the data that is stored in the database. I would like the data that is displayed, DisplayValue

Then just convert the original value to the view value version by writing your own code.