The email is not coming with the contact name

This code is not returning the email id with the contact name. As per this code the email ids will be concatenated with contact name within “<” “>” but it’s not happening.

$contact_property = dol_string_nospecial(dolGetFirstLastname($obj->firstname, $obj->lastname), ’ ', array(“,”))." <“.$obj->email.”>";

the code is under function contact_get_property()

This is what is using

contact_get_property((int) $val,‘email’);

Actually I have saved two email ids into a contact and now i am trying to send email those both email id from any send by email form