Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    help question How do I send BCC to myself when I Send Email to Customer?

    Hello,

    I know your busy, I'll just cut to the chase...

    When I use the admin>tools>send email function to send an email to customer, it never send me a copy.

    I would like for my admin@ address to be included as a bcc on every email I send this way so I have a copy of what that email looked like.

    Can you tell me where I can make this change to get that done?
    Please.
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: How do I send BCC to myself when I Send Email to Customer?

    To make your admin "send email" page send a BCC to the store owner's email address as defined in Admin->Configuration->Email Options, make the following change:

    /includes/functions/functions_email.php

    Around line 210 you'll see:
    Code:
          $mail->Subject  = $email_subject;
          $mail->From     = $from_email_address;
    Insert the extra code as shown:
    Code:
          $mail->Subject  = $email_subject;
    
          if (IS_ADMIN_FLAG === true && $module == 'direct_email') {
            $mail->AddBCC(STORE_OWNER_EMAIL_ADDRESS, STORE_NAME);
          }
          
          $mail->From     = $from_email_address;
    Or, even easier yet, use the observer class attached. Place the two files as indicated:
    /includes/auto_loaders/config.sendBCCofAdminEmails.php
    /includes/classes/observers/class.sendBCCofAdminEmails.php
    Attached Files Attached Files
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    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
    Feb 2007
    Location
    NNJ
    Posts
    212
    Plugin Contributions
    0

    Default Re: How do I send BCC to myself when I Send Email to Customer?

    Thank you!

    It was exactly at line 210, and it works exactly as I wanted, and
    another fine job by the notorious Dr. Byte.


    For those of you not familiar with using the BCC, it allows you to address someone on your email without the knowledge of the others. So, I can email myself a copy of outgoing emails without the knowledge of the intended recipient. This allows me to use my mail client to archive emails which was it's intended function among others.
    Elliot

    The loves of my life are a good white zinfandel and my dog Homer.

  4. #4
    Join Date
    Nov 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: How do I send BCC to myself when I Send Email to Customer?

    Quote Originally Posted by Zinfandel View Post
    Thank you!

    It was exactly at line 210, and it works exactly as I wanted, and
    another fine job by the notorious Dr. Byte.


    For those of you not familiar with using the BCC, it allows you to address someone on your email without the knowledge of the others. So, I can email myself a copy of outgoing emails without the knowledge of the intended recipient. This allows me to use my mail client to archive emails which was it's intended function among others.
    Thank you from me to Dr. Byte as well. This has been a nag of mine for awhile and I tripped over this thread. Change works great!

 

 

Similar Threads

  1. when will it send products notification email to customer?
    By linjuming in forum General Questions
    Replies: 2
    Last Post: 17 Sep 2012, 08:36 AM
  2. Replies: 1
    Last Post: 23 Dec 2011, 10:41 PM
  3. Don't send email to customer when order placed
    By Jace in forum General Questions
    Replies: 3
    Last Post: 3 Dec 2010, 07:22 AM
  4. How to send a pre written confirmation email automatically when a customer pays?
    By gehdina in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 7 Jun 2009, 08:17 PM
  5. Send email when customer authorised?
    By Raina in forum Customization from the Admin
    Replies: 3
    Last Post: 3 Nov 2007, 01:55 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR