View Single Post
  #6  
Old 08-08-2006, 01:08 PM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default

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:

Code:
$m_from = $from;
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.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote