Hi
When I create a draft email in any related module, Leads for example, and then save the draft email, in the from field, sugarCRM sets the current user Link.
I am trying to do the same in a logic hook, but I don't know how to do that. I saw the model in the sidecar and the field name is "from_collection", I try those, but did not work.
//firts try
$mail->from_addr = $user->email1;
$mail->from_name = $user->name;
I saw the Email class in sugar and it says
any Idea how to use @link Email::$from