Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default BCC on order emails to trigger auto-responder system?

    Can i add an email on the BCC of an email confirmation or order update?? I know a i can copy a email in, but i need to BCC.

    Reason

    The reason i need to bcc is for a reviews site that needs to be BCCed so they can automatically send review emails to my customers. If I just add them as a copy they do not get the customers name and email address in the headers of the email, which they required for their software to pick up.

    any ideas or help?

    reviews by reviews.co.uk

  2. #2
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: BCC on order emails

    Quote Originally Posted by kitcorsa View Post
    Can i add an email on the BCC of an email confirmation or order update?? I know a i can copy a email in, but i need to BCC.

    Reason

    The reason i need to bcc is for a reviews site that needs to be BCCed so they can automatically send review emails to my customers. If I just add them as a copy they do not get the customers name and email address in the headers of the email, which they required for their software to pick up.

    any ideas or help?

    reviews by reviews.co.uk
    Pretty straight forward:

    Admin > Configuration > E-Mail Options > Send Copy of Order Confirmation Emails To

    add any email address you want to receive a copy.

    Format:

    Name 1 <email@address1>, Name 2 <email@address2> etc etc

    This works like a BCC - no recipient will know who else is getting a copy.

    You can do this for all other emails, just use the same screen Admin > Configuration > E-Mail Options
    Last edited by frank18; 24 Jun 2014 at 10:27 AM.

  3. #3
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: BCC on order emails

    yes i know about sending a copy but thats the issue, it send a new email with the sames copy in the body to each person, so when i add the email for my reviews.co.uk account the email that reviews.co.uk recieves does not show the customers email etc, meaning the only email address that reviews.co.uk sees in the header is my sites email and my reviews.co.uk account email, meaning all the emails asking for a review just get sent to either me or back to reviews.co.uk and not the customer. If you get where im coming from?

    if reviews.co.uk was BCC in the email, they would then get the customers email address in the header so reviews can be left.

    I had a simular issue with trustpilot when not using mailbeez

  4. #4
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,379
    Plugin Contributions
    9

    Default Re: BCC on order emails

    Quote Originally Posted by kitcorsa View Post
    yes i know about sending a copy but thats the issue, it send a new email with the sames copy in the body to each person, so when i add the email for my reviews.co.uk account the email that reviews.co.uk recieves does not show the customers email etc, meaning the only email address that reviews.co.uk sees in the header is my sites email and my reviews.co.uk account email, meaning all the emails asking for a review just get sent to either me or back to reviews.co.uk and not the customer. If you get where im coming from?

    if reviews.co.uk was BCC in the email, they would then get the customers email address in the header so reviews can be left.

    I had a simular issue with trustpilot when not using mailbeez
    So if I understand you right, you want the 'reply to email address' (in your case the customer's email address) added to the header of your order confirmation email.... am I right?

    If I am right then that would require custom coding (me thinks...) as the standard ZC 'from' address is the store email, IOW the $email_reply_to_address would need to contain the customer's email address.

    Is that correct?

    If so, you may want to examine the includes/functions/functions_email.php file and take it from there.

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

    Default Re: BCC on order emails

    Use the observer class I posted here: http://www.zen-cart.com/showthread.p...726#post597726
    And make a slight modification, changing "direct_mail" to "checkout", if you want it to only handle order-confirmation messages.
    .

    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.

  6. #6
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: BCC on order emails

    thanks Dr Byte you legend

    if i also change STORE_OWNER_EMAIL_ADDRESS, to the bcc for reviews.co.uk what can i change STORE_NAME to so it has the normal order confirmation message subject??

    can i change direct_mail to a order status for example dispatched??

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

    Default Re: BCC on order emails

    Quote Originally Posted by kitcorsa View Post
    if i also change STORE_OWNER_EMAIL_ADDRESS, to the bcc for reviews.co.uk what can i change STORE_NAME to so it has the normal order confirmation message subject??
    I'm not sure I understand the question.
    In the code I referred to, the subject will be the same as whatever email is currently being built, so for order confirmations, will receive the normal confirmation message subject anyway. It's not based on the recipient's email address.
    Quote Originally Posted by kitcorsa View Post
    can i change direct_mail to a order status for example dispatched??
    No. In that code the reference to 'direct_mail' is for any messages sent using the Admin's "Send email to customer" feature. If you change that to 'checkout' then that code will instead be triggered whenever the zen_mail() function receives 'checkout' as the $module parameter ... and in original ZC code that's done when sending order-confirmations to customers.

    If you wanted to do it only under certain other conditions, you'd need to customize the code for your unique needs.
    When you say you want this only for "dispatched" order status, that tells me you're NOT using this for order-confirmation at all, but instead for order-status-updates triggered by the administrator when handling orders ... which contradicts this whole discussion. To do that you'd need to change 'direct_mail' or 'checkout' to 'order_status' (to match the zen_mail function calls issued when running those updates in the admin). And if you want to isolate it to specific order-statuses then you'd need to set a global variable in your admin/order.php code to state what order-status this update is for, and then in the observer class you'd need to modify the if-statement to not only check which 'module' is being referenced, but also to test the order-status using the global variable you added.
    .

    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.

  8. #8
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: BCC on order emails

    yeah i can use the checkout to trigger, but not ideal as some items will be delivered next day other upto 14 working days, so if reviews are chasing for a review on the review 3 days after checkout for item with is 14 days then its no good really.

    i can change the trigger day to 5 days or 7 days but sending the trigger when the order is changed to dispatched would be great.

    is there a way to send a separate email on a order status change??

  9. #9
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: BCC on order emails

    Quote Originally Posted by kitcorsa View Post
    yeah i can use the checkout to trigger, but not ideal as some items will be delivered next day other upto 14 working days, so if reviews are chasing for a review on the review 3 days after checkout for item with is 14 days then its no good really.

    i can change the trigger day to 5 days or 7 days but sending the trigger when the order is changed to dispatched would be great.

    is there a way to send a separate email on a order status change??
    When using the admin panel to update the order status there is an option to notify the customer which will send an email at that point, if you are looking to do this through some automated process, then see Dr. Byte's post, you will either need to add the particular notifier into the list of options to look out for, or if you want a different action to occur as a result then would duplicate those files to perform the other operation with the other notifier(s).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  10. #10
    Join Date
    Feb 2007
    Posts
    1,704
    Plugin Contributions
    0

    Default Re: BCC on order emails

    yes use the email set when we notify a customer then the order is dispatched (which we manually do) would be a good way to trigger reviews.co.uk email system

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Contact Us Form Code Not Compatible with Auto-Responder?
    By traytray in forum Addon Templates
    Replies: 3
    Last Post: 26 Feb 2016, 06:20 AM
  2. Integrating an External Auto-Responder
    By Kryspen in forum General Questions
    Replies: 0
    Last Post: 23 Jun 2010, 10:46 PM
  3. Auto responder for newsletter sign-up form.
    By linda408 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 10 Jun 2010, 01:31 AM
  4. Setting Up an Auto-Responder
    By ValhallaSoapGal in forum General Questions
    Replies: 2
    Last Post: 17 Sep 2008, 07:47 AM
  5. Adding Bcc to emails sent from Zencart
    By cropinstop in forum General Questions
    Replies: 3
    Last Post: 13 May 2007, 06:20 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