Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Display company name as Email sender

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 04-04-2012, 09:52 AM
 
BounceHouse BounceHouse is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 4
 

Default Display company name as Email sender

I am trying to figure out how to change the actual email sent from the store when an order is processed, complete, newletters set, etc. It says just sales@website.com and I would like it to actually say the name of company and for newletters say monthly newletter or some sort. Anyone can help with this would be greatly appreciated. Thanks!!!
__________________
x-cart 4.3
Reply With Quote
  #2  
Old 04-04-2012, 04:47 PM
 
BounceHouse BounceHouse is offline
 

Newbie
  
Join Date: Jan 2011
Posts: 4
 

Default Re: Email Displays from Auto store Email

Does anyone know how to change the display name when your store sends auto emails to your customers? It just displays the actual email address but instead it would be better to display your store or company name to stand out to them. IDEAS?
__________________
x-cart 4.3
Reply With Quote
  #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

The following 3 users thank qualiteam for this useful post:
chamberinternet (01-02-2014), David-Allan (06-06-2012), Duramax 6.6L (05-29-2012)
  #4  
Old 04-09-2012, 05:01 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

Moving to "Completed Custom Mods & Templates" forum.
__________________
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
Reply With Quote
  #5  
Old 04-09-2012, 08:15 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Display company name as Email sender

Consider including it in 4.4.6 Alex. It is a simple change
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #6  
Old 04-13-2012, 06:34 AM
 
thebluedoorboutique thebluedoorboutique is offline
 

Senior Member
  
Join Date: May 2011
Posts: 168
 

Default Re: Display company name as Email sender

I had just opened a ticket for this on the Help Desk, and they suggested this method. But then e-mailed me back to tell me that this wouldn't work due to Javascript of some sort and that the company name would have to be stored in a language variable. Thoughts?
__________________
X-Cart Classic 4.4.X
Reply With Quote
  #7  
Old 04-13-2012, 06:38 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Display company name as Email sender

The introduced changes should apply only to email notifications.

Not sure how it is related... any other clarification what page javascript?
__________________
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
Reply With Quote
  #8  
Old 04-13-2012, 08:22 AM
 
thebluedoorboutique thebluedoorboutique is offline
 

Senior Member
  
Join Date: May 2011
Posts: 168
 

Default Re: Display company name as Email sender

Quote:
Originally Posted by qualiteam
The introduced changes should apply only to email notifications.

Not sure how it is related... any other clarification what page javascript?

Not sure, but you can check my ticket: 1073880059
__________________
X-Cart Classic 4.4.X
Reply With Quote
  #9  
Old 04-14-2012, 09:48 PM
 
lcg lcg is offline
 

Senior Member
  
Join Date: Feb 2007
Posts: 106
 

Default Re: Email Displays from Auto store Email

Quote:
Originally Posted by qualiteam
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',
); 

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.

Hello, is there sample code for X-Cart 4.0.18? Thanks in advance.
__________________
XCart v.4.0.18
Reply With Quote
  #10  
Old 04-16-2012, 01:20 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Display company name as Email sender

No, in 4.0.x it is even simpler.

All you need to do is alter the "admin/configuration.php" script and replace this piece of code:
PHP Code:
$trusted_post_variables = array("gpg_key""pgp_key"); 

with this:
PHP Code:
$trusted_post_variables = array("gpg_key""pgp_key""site_administrator""users_department""orders_department""support_department""newsletter_email"); 
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:21 AM.

   

 
X-Cart forums © 2001-2020