How to change the FROM name when xcart sends emails
my xcart sends emails from sales@shopneo.co.uk
however in gmail the name from comes up as "sales" looks a bit ambigous and not very professional so where to hard code for the name title to be from "Neo Sales" for example same for all email accounts including newsletters - thanks in advance |
I haven't tested this, but hopefully this will work, or at least lead you in the right direction. It will change all email to be from your company name, but the reply address will stay as orders, newsletter etc. Just replace YOUR COMPANY NAME below.
In func.php find Code:
function func_send_mail If you are using HTML there is a line that sets the email addresses. Try this: Replace: Code:
$headers = "From: ".$m_from.$lend."X-Mailer: PHP/".phpversion().$lend."MIME-Version: 1.0".$lend.$message_header; Code:
$headers = "From: YOUR COMPANY NAME HERE<".$m_from.">\r\n" . |
I'll give it a try - thanks a lot !
|
after edit the site wouldnt even load - i just got a blank screen ?
|
Sorry. Forgot to add the closing semi-colon. Try this, I tested this and it worked on version 4.0.14.
Change the line to this: Code:
$headers = "From: YOUR COMPANY NAME<".$m_from.">".$lend."X-Mailer: PHP/".phpversion().$lend."MIME-Version: 1.0".$lend.$message_header; |
That method will alter the from name for all emails sent even if the from is supposed to be the customer. The biggest problem areas will be GC's, send to a friend and wishlist. Contact emails will be a problem too. If you reply to the customer they will get a reply email that will show as from their name but with your company email address. Try this instead. Still in func_send_mail just a couple of lines earlier find this:
Code:
$m_from = $from; Code:
switch ($from) { Works on 4.0.14 and 4.0.18 and probably most any 4.0 or 4.1 version. |
brilliant - works great
thanks geckoday |
Where is func.php
I cant find it Thanks Tahir |
In 4.1 func.php has been broken up into a bunch of smaller files in the include/func directory. You should be looking for func.mail.php
|
I have changed it but still no luck
Where do I change company name to appear in email from field? |
All times are GMT -8. The time now is 04:02 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.