Zen Cart Logo
Forums / Managing Customers and Orders / [new order] mail -- how do I change the reply-to ?

[new order] mail -- how do I change the reply-to ?

Locked

Views: 5,116

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
7 Sep 2007, 9:43 AM
#1
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

[new order] mail -- how do I change the reply-to ?

Hi,
I'm having problems with when customers are placing orders, mails gets sent/from as: my store mail adress.

(since i recieve a mail when customers place an order)
Where and how can I do that when customers place order and I recieve the mail, so that I can only press "reply" button in the mailprogram and mail gets adressed to the customer that placed the order instead of it getting sent to my self so to speak.

thanks
Dejan

7 Sep 2007, 4:30 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

If you want to customize how it normally works, you can edit your /includes/functions/functions_email.php file, find the following section, and add 'checkout_extra' to the list, as shown:```
$email_reply_to_address = ($email_reply_to_address) ? $email_reply_to_address : (in_array($module, array('contact_us', [B]'checkout_extra', [/B]'tell_a_friend')) ? $from_email_address : EMAIL_FROM);
$email_reply_to_name = ($email_reply_to_name) ? $email_reply_to_name : (in_array($module, array('contact_us', [B]'checkout_extra', [/B]'tell_a_friend')) ? $from_email_name : STORE_NAME);

13 Nov 2007, 9:49 PM
#3
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

DrByte; I have added the checkout on both lines, but still same thing.

example:

[NEW ORDER] Order Confirmation No: 129

when I browse the mail it says FROM: [email protected]

I want it automatically to be the customers emailadress

want it to be example FROM: [email protected]

so that I can make a reply to customer on the "[NEW ORDER] Order Confirmation No: 129" mail and get everything included in my reply to him.

is it possible? have I accidently added somewhere info or some setting to force it to be sent as from mystores adress?

by the way; Emails must send from known domain? is set to No.

16 Nov 2007, 10:31 AM
#4
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

Does anyone need more info from me to understand exactly what I need help with?

Just doublechecking so I know if I need to give more info or just wait and hope to get reply and help :smartalec:

thanks
Dejan

16 Nov 2007, 10:52 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

Oops ... use "checkout_extra" instead of "checkout" from my earlier post.

18 Nov 2007, 8:31 PM
#6
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

still no good news :blink:

Don't know if has anything to do with it but I have theese two settings set to the shops adress.

Email Address (Displayed to Contact you) "[email protected]"
Email Address (sent FROM) "[email protected]"

when I recieve the order emails its still from my store and not the customers email: [email protected]

so when I press reply to on the copy that is being sent to me (admin) it replies to mystore and not the actual customer.com

have I missed anything..?

thanks
Dejan

19 Nov 2007, 7:32 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

'checkout_extra' should be all that's required.

What version of Zen Cart are you using?
What addons/contributions do you have installed?
Did you edit both lines indicated earlier?
If you do a test order as a customer, does the email sent to your customer for order-confirmation come "from" the "store name"+email or from the customer name+email?

19 Nov 2007, 1:49 PM
#8
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

i'm using 1.3.7 with the latest patches/fixes you posted.

** addons using:**
template redpassion
-ask a question
-best sellers reloaded
-catcha using ttf and gd
-contact us add subject
-easy populate
-imagehandler
-improved attributes controller
-report cheaper price(info what I know extra of this addon is that it is modified modified addon from ask a question addon)
-user tracking

i did edit both lines, first tried with 'checkout' on both lines and then tried with 'checkout_extra' on both lines. But no difference.

Only difference was when I erased the emailadress on this field in admin: Email Address (sent FROM), then all the emails (both to customer and copy to admin was namely my storename BUT emailadress was blank so no known sender so to say)

** For further easier understanding.
example:**
-My stores contact email is: [email protected] <- this adress is redirected to admin email (done on controlpanel at host)
-Admins email (where I've put settings that copy of order confirmation and order email get sent to): [email protected]
-Customers emailadress: [email protected] (I've added myself this customer to try and get this to work, so this customer is actuallt myself testing)

** Orderconfirmation sent to customer Patric:**
Is adressed to [email protected]
Is adressed from [email protected]

** [NEW]Order email sent to admin (the adress where i put order email to get sent to):**
Is adressed to [email protected] (admin)
Is adressed from [email protected] <- this is where I would like that [email protected] emailadress would show up so that I can press reply button. (or similar way, but so I can press reply button)

////
** Later when I changed in emailoptions "Email Address (sent FROM)" and erased the emailadress i had written there [email protected] to blank field:**

** Orderconfirmation sent to customer Patric:**
Is adressed to [email protected]
Is adressed from "blank" (But my stores name is shown, but on mouseover is shows blank emailadress)

** [NEW]Order email sent to admin (the adress where i put order email to get sent to):**
Is adressed to [email protected] (admin)
Is adressed from "blank" (But my stores name is shown, but on mouseover is shows blank emailadress) <- this is where I would like that [email protected] emailadress would show up so that I can press reply button. (or similar way, but so I can press reply button)

hope you can help me find my problem DrByte.
and hope I have answered all your questions.

thanks
Dejan

19 Nov 2007, 6:55 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

What are the "version $Id" headers from these two files, and have you made any edits to these files, other than the "checkout_extra" I mentioned?
-/includes/functions/functions_email.php
-/includes/classes/order.php

19 Nov 2007, 9:41 PM
#10
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

I haven't edited and done anything with functions_email.php file what I can see.
edited those two lines you told me, nothing else.

The original functions_email.php is dated 2007-01-27 00:00 (renamed it to functions_email.php.org)

The modified functions_email.php is dated 2007-11-18 21:12 hence of the modification on those two lines.

About order.php it has a different date, its dated 2007-09-15 12:10
Though I can't seem to find what I would suppose to have edited that file with..? I've browsed the order.php file but nothing that rings a bell.
I could send file to you if desired or try and use a mergeprogram if needed, let me know.

on /includes/functions/functions_email.php :
@version $Id: functions_email.php 5442 2006-12-29 04:16:40Z drbyte $

on /includes/classes/order.php :
@version $Id: order.php 5369 2006-12-23 10:55:52Z drbyte $

27 Nov 2007, 11:22 AM
#11
dedj avatar

dedj

Zen Follower

Join Date:
Jan 2007
Posts:
129
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

DrByte, did you find out anything of the info I gave you?

thanks
Dejan

27 Nov 2007, 2:50 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

Adding 'checkout_extra' as described earlier, onto a fresh v1.3.7 install ... tested fine for me.

27 Nov 2007, 2:51 PM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

Why are you using email to update your customer orders instead of the admin console, where your correspondence could be logged with the order and the updated comments auto-emailed to the customer along with a link to their My Account area where they can see the updates interactively.

21 Oct 2010, 10:04 AM
#14
jaygee avatar

jaygee

New Zenner

Join Date:
Mar 2005
Location:
UK
Posts:
38
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

This is an old thread but reflects what I'm trying to achieve and I can't find any other reference to it so wondered if anyone else has done this:

I tried the suggested solution but couldn't seem to make it work. Using 1.39g

At present the order confirmation email header has the store name (linked to store email address) and order number, for example

pointeshoe. com---------------[New Order] Order Confirmation No 1000

I would like to change it so instead of the store name I get the customer surname linked to their email address, for example

smith---------------[New Order] Order Confirmation No 1000

Any help would be appreciated

21 Oct 2010, 3:52 PM
#15
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

Why ?

21 Oct 2010, 9:50 PM
#16
jaygee avatar

jaygee

New Zenner

Join Date:
Mar 2005
Location:
UK
Posts:
38
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

DrByte:

Why ?

DrByte

We get many orders emailed or phoned directly to us from regular customers as well as from the zen store. Many of our products are made to order with some taking up to 6 months. I use Outlook to maintain a record of all outstanding orders whether they be store or directly received and recognise many of the names and their orders simply by looking at the list. Clearly, we work on much lower order levels than many web stores so this is still feasible.

I still use admin to update the cart orders but still benefit from seeing the customer name or email listed within Outlook rather than having to open each cart order or reconcile the order number to the name. The system works well at present and whilst I can get by I'd be more comfortable seeing the customer name rather than my zen store name.

Hope this explains the request.

Regards.

22 Oct 2010, 2:28 AM
#17
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: [new order] mail -- how do I change the reply-to ?

So, you've added the "checkout_extra" to the list as directed earlier?
Then what's your setting in Admin->Configuration->Email Options->Emails must send from known domain? Try setting this to False.

The downside to doing that is the emails might get treated as spam.

22 Oct 2010, 8:44 AM
#18
jaygee avatar

jaygee

New Zenner

Join Date:
Mar 2005
Location:
UK
Posts:
38
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

Thanks.

I'll give this a go later today.

I've changed both before but not sure if at the same time.

Let you know how I get on.

22 Oct 2010, 2:22 PM
#19
jaygee avatar

jaygee

New Zenner

Join Date:
Mar 2005
Location:
UK
Posts:
38
Plugin Contributions:
0

Re: [new order] mail -- how do I change the reply-to ?

Decided to approach this from a different direction as all I really needed was the surname somewhere in the subject line.

Small change within order.php as follows had the desired effect:

zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id . ' (' . $this->customer['lastname'] . ')',
$email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);

this generates:

[NEW ORDER] Order Confirmation No: 1014 (surname)

DrByte - Thanks for pointing me in the right direction.