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
  #51  
Old 10-13-2014, 02:16 AM
 
designguru designguru is offline
 

X-Adept
  
Join Date: Dec 2010
Posts: 418
 

Default Re: Display company name as Email sender

Quote:
Originally Posted by aim
Do you apply the sql patch ?

You have to fill something like 'Your Company Name <sales@yourstore.com>' to the '"From" email address ' field.

Yes, was filled in and also updated it. But I tried only to input the store name and it didn't work. Now with < > + email it worked! Also worked perfectly for the newsletter reply-to email.

Thank you again!
__________________
X-Cart Pro 4.6.2 with many modules
X-CART Pro 4.4.1
Reply With Quote

The following 2 users thank designguru for this useful post:
aim (10-13-2014), qualiteam (10-14-2014)
  #52  
Old 05-20-2015, 07:48 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Display company name as Email sender

Quote:
Originally Posted by Raptor
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. "

Having the same issue as above!^^^^

Having an issue with this on XC 4.5.5, when we have the "Use SMTP server instead of internal PHP mailer" option checked in our email settings, instead of using PHP.

It shows correctly and sends to customers, but doesn't send us any emails (contact us, orders placed, etc). Because we have the display name shown.

If we get rid of this display name and set it just to a normal email, it works as it should (just so you know my SMTP settings are correct).

I believe the error is coming from include/func/func.mail.php around line 222:

Code:
// Send recipients email addresses. $recipients = preg_split("/[,\s]+/", $mail_data['to']); $recipients = func_array_map('trim', $recipients);

In the preg_split code (below):

Code:
$recipients = preg_split("/[,\s]+/", $mail_data['to']);

If we remove the "\s" it stops it from removing any spaces in the recipient e-mail addresses, but then we see this error:

Code:
Email server declined recipient email address (Error: RCPT not accepted from server; smtp_code: 501; smtp_msg: <Display Name <example@example.com>>: "@" or "." expected after "Display")
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #53  
Old 05-26-2015, 07:47 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default Re: Display company name as Email sender

BUMP.

So it seems when you select SMTP mailing option, it still expects the emails to be sent using JUST a valid email address, and no display name is allowed.

If there's a way (maybe in the func.mail.php) you can remove the

Your Company Name <>

from

Your Company Name <sales@yourstore.com>

(so it keeps the sales@yourstore.com part)

Then I'm almost positive this will work. But we can't get this to work correctly (using PHP 5.3)
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
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 07:00 AM.

   

 
X-Cart forums © 2001-2020