View Single Post
  #3  
Old 04-09-2012, 04:59 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Email Displays from Auto store Email

This is possible, but a slight modification is required.

Here are instructions (for X-Cart 4.4.5):

1. alter the "include/func/func.core.php" script and replace this piece of code:
PHP Code:
return "^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z](?:[a-z0-9-]*[a-z0-9])$"
with this one:
PHP Code:
return "^([a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z](?:[a-z0-9-]*[a-z0-9]))|([A-z 0-9]{3,}[ ]{1}(<){1}[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z](?:[a-z0-9-]*[a-z0-9])(>){1})$"

2. alter the "admin/configuration.php" script and replace this piece of code:
PHP Code:
$trusted_post_variables = array(
    
'gpg_key',
    
'pgp_key',
    
'xpc_private_key_password',
    
'xpc_private_key',
    
'xpc_public_key',
    
'breadcrumbs_separator',
    
'wibiya_integration_code',
); 
with this this one:
PHP Code:
$trusted_post_variables = array(
    
'gpg_key',
    
'pgp_key',
    
'xpc_private_key_password',
    
'xpc_private_key',
    
'xpc_public_key',
    
'breadcrumbs_separator',
    
'wibiya_integration_code',
    
'site_administrator',
    
'users_department',
    
'orders_department',
    
'support_department',
    
'smtp_mail_from',
); 

To apply the modification the FTP/SSH access is required.

Once the modification is applied, you will be able to use the following e-mail format on the Company options page: Your Company Name <sales@yourstore.com>

That will make emails show Your Company Name as a sender.

NOTE: additional changes are required in case X-Payments is used.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions

Last edited by qualiteam : 07-30-2012 at 11:47 PM. Reason: additional changes, smtp mail from support added
Reply With Quote