That method will alter the from name for all emails sent even if the from is supposed to be the customer. The biggest problem areas will be GC's, send to a friend and wishlist. Contact emails will be a problem too. If you reply to the customer they will get a reply email that will show as from their name but with your company email address. Try this instead. Still in func_send_mail just a couple of lines earlier find this:
and replace it with this:
Code:
switch ($from) {
case $config["Company"]["users_department"]:
case $config["Company"]["site_administrator"]:
case $config["Company"]["orders_department"]:
case $config["Company"]["support_department"]:
case $config["Company"]["newsletter_email"]:
$m_from = $config["Company"]["company_name"].'<'.$from.'>';
break;
default:
$m_from = $from;
}
This uses the company name from the admin configuration for the email display name.
Works on 4.0.14 and 4.0.18 and probably most any 4.0 or 4.1 version.