Zen Cart Logo
Forums / General Questions / BCC on order emails to trigger auto-responder system?

BCC on order emails to trigger auto-responder system?

Locked

Views: 3,285

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
24 Jun 2014, 9:05 AM
#1
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

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

24 Jun 2014, 9:24 AM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: BCC on order emails to trigger auto-responder system?

kitcorsa:

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

24 Jun 2014, 9:45 AM
#3
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: BCC on order emails to trigger auto-responder system?

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

24 Jun 2014, 11:43 AM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: BCC on order emails to trigger auto-responder system?

kitcorsa:

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.

25 Jun 2014, 4:44 PM
#6
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: BCC on order emails to trigger auto-responder system?

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??**

26 Jun 2014, 12:42 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: BCC on order emails to trigger auto-responder system?

kitcorsa:

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.
kitcorsa:

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.

26 Jun 2014, 2:49 PM
#8
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: BCC on order emails to trigger auto-responder system?

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??

26 Jun 2014, 3:31 PM
#9
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: BCC on order emails to trigger auto-responder system?

kitcorsa:

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).

27 Jun 2014, 3:07 PM
#10
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: BCC on order emails to trigger auto-responder system?

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