X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Display company name as Email sender (https://forum.x-cart.com/showthread.php?t=63170)

Raptor 08-20-2012 07:33 PM

Re: Display company name as Email sender
 
still problems with 4.5.1 when using SMTP (although I can now add Company Name <name@mail.com> to the SMTP 'From' text box)

contact us page not working now(using SMTP mail) and dont receive any other emails

contact us page error is

"Your message could not be sent. Please contact the store admin. "

Bluemonk 03-15-2013 01:19 AM

Re: Display company name as Email sender
 
How can I get this to work in 4.5.4. I made the code changes outlined in this thread but still cannot use the new format in the "from"email address box.

Thanks for your help

Raptor 07-29-2013 09:34 PM

Re: Display company name as Email sender
 
Doesn't work in 4.6.0 either

Come on Qualiteam.....

Raptor 08-26-2013 08:19 AM

Re: Display company name as Email sender
 
no answer?

:(

mcanitano 12-31-2013 08:16 AM

Re: Display company name as Email sender
 
Has this mod been updated to work on 4.5.5, or are there still the errors mentioned above?

susilosaja 02-05-2014 07:59 AM

Re: Display company name as Email sender
 
I'm having the same problem. The fix doesn't work for 4.5.4.

Anyone found the fix?

mcanitano 08-18-2014 09:06 AM

Re: Display company name as Email sender
 
Any update on this?

xtech 09-11-2014 05:23 AM

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',
    
'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.


I want to work it on 4.6 version.Can you please provide me codes for 4.6.x version?

aim 09-17-2014 04:37 AM

Re: Display company name as Email sender
 
2 Attachment(s)
These patches have been uploaded

 show_company.diff
 show_company.sql

mcanitano 09-17-2014 05:27 AM

Re: Display company name as Email sender
 
Quote:

Originally Posted by aim
These patches have been uploaded

 show_company.diff
 show_company.sql


Can you verify which XC versions these patches are compatible with?


All times are GMT -8. The time now is 08:30 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.