I have the following php var :
$mail_from=$full_name." <".$user_obj->getEmailAddress().">";
but only the $full_name is capture in $mail_from.The $user_obj->getEmailAddress() is not assigned to $mail_from.
I var_dump both $full_name and $user_obj->getEmailAddress() and both got value.
Whats wrong?
here are the var_dump value :
$full_name : string(12) "TAN CHEN WEI"
$user_obj->getEmailAddress() : string(26) "level2@hartalega-bb.com.my"
$mail_from : string(41) "TAN CHEN WEI "
Try Escaping
Demo — Run the following Code in : http://writecodeonline.com/php/
Check Manual : http://php.net/manual/en/function.htmlspecialchars.php