View Single Post
  #14  
Old 09-29-2008, 05:48 AM
  phicaloma's Avatar 
phicaloma phicaloma is offline
 

Advanced Member
  
Join Date: Nov 2007
Location: Paris - France
Posts: 34
 

Default Re: How to change the FROM name when xcart sends emails

Quote:
Originally Posted by geckoday
Which version are you modifying? Your signature says you are on 4.1. func.php doesn't exist on 4.1. If you are modifying a 4.0 version use the first change I posted.

Also, after a closer look there are two places to change. Both are in func.php for 4.0 and func.mail.php in 4.1. The functions within those files are func_send_mail and func_send_simple_mail. The changes for func_send_mail for the two different versions are posted above. For func_send_simple mail in either version look for this:
Code:
else { $m_from = $from; $m_subject = $subject; }
And replace it with this:
Code:
else { $m_from = $from; $m_subject = $subject; } switch ($m_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"].'<'.$m_from.'>'; break; }

Hello,

I tried all this...to no avail (nothing changed, newsletter test arriving ok but with just the email address, not the company's name).

I have version X-Cart 4.1.9.

Have any clues...?

Thank you in advance for your answer,

Cheers

Philippe
__________________
X-Cart Gold 4.1.9 - 4.2.0 - 4.2.2
Telafirma: Dynamic Images, Narrow by Manufacturer, Product Page manufacturer, Static Pages Categories, Multicolumn Recommends
Firetank Software: Featured Products, Feed Manager, Newest Products, Sitemap Pro, Marketing Manager
Xcartmods: Ultimate Minicart, 4 Level Horizontal (and Vcal) Flyout

BCSE: Reviews Edit, Multiple Upselling
MagenticOne: Tag Cloud, Store Manager, Custom Data Feed
Websitecm: Xnews, Xnews SEO, CDSEO Pro
Jon Langevin: Gone With The Wind !
Reply With Quote