Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2006
    Posts
    64
    Plugin Contributions
    0

    Default Order Confirmation email address?

    Hi,
    I would like to get the order confirmation email with the customer's email address in the "From" field insteed of my website's email address. This way I could reply directly to the customer and add the email address to the address book easier.
    Can I do this myself by changing some template, or file, or this question should be on the wish list forum?

    Thanks,

  2. #2
    Join Date
    Jan 2004
    Posts
    58,446
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: Order Confirmation email address?

    At the bottom of your /includes/classes/order.php

    you have this around line 971:
    Code:
        // send additional emails
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
          $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
          $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra');
        }
    change to:
    Code:
        // send additional emails
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
          $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
          $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $html_msg, 'checkout_extra');
        }
    NOTE: When changing the "send from" email address like that you may end up with some of it being treated as spam/junk since it may look like it is being relayed. To counter this, you can try setting the Admin switch for "Emails must send from known domain".
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2006
    Posts
    1
    Plugin Contributions
    0

    Idea or Suggestion Re: Order Confirmation email address?

    Hello!

    Because i'm not know very goog english i write just the cod:
    I modify the functions/functions_email.php on line 157
    PHP Code:
    $email_reply_to_address = ($email_reply_to_address) ? $email_reply_to_address : ($module=='contact_us' || $module=='tell_a_friend' $from_email_address /*EMAIL_FROM*/$from_email_address);
     
    $email_reply_to_name    = ($email_reply_to_name)    ? $email_reply_to_name    : ($module=='contact_us' || $module=='tell_a_friend' $from_email_name    /*STORE_NAME*/$from_email_name); 
    Bye!

  4. #4
    Join Date
    Mar 2009
    Posts
    55
    Plugin Contributions
    0

    Default Re: Order Confirmation email address?

    Quote Originally Posted by DrByte View Post
    At the bottom of your /includes/classes/order.php

    you have this around line 971:
    Code:
        // send additional emails
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
          $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
          $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra');
        }
    change to:
    Code:
        // send additional emails
        if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
          $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
          $html_msg['EXTRA_INFO'] = $extra_info['HTML'];
          zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
          $email_order . $extra_info['TEXT'], $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $html_msg, 'checkout_extra');
        }
    NOTE: When changing the "send from" email address like that you may end up with some of it being treated as spam/junk since it may look like it is being relayed. To counter this, you can try setting the Admin switch for "Emails must send from known domain".
    Sorry for reviving this old conversation - but this solution worked great for me - is it possible to do the same with Copy or Create Account emails as well?

    i.e. When the customer creates an account - it sends them an email and when they hit reply then the default address in their "to" field is: info@mystore.com -

    and when I receive the copy of the create account - and hit "reply" i want the customer's address to appear in the "to" field automatically...

    Thanks!

  5. #5
    Join Date
    Apr 2012
    Location
    chennai, india
    Posts
    2
    Plugin Contributions
    0

    Default Re: Order Confirmation email address?

    I am using Zen Cart 1.5 and the lines is not as shown in your Solution

    // send additional emails
    if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
    $extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone']);
    $html_msg['EXTRA_INFO'] = $extra_info['HTML'];

 

 

Similar Threads

  1. Replies: 4
    Last Post: 30 Oct 2006, 01:30 PM
  2. Japanese Order Confirmation Email
    By namasa in forum General Questions
    Replies: 13
    Last Post: 14 Jul 2006, 03:25 AM
  3. Broken text in order confirmation email
    By dustygain in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 16 Jun 2006, 02:37 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •