Zen Cart Logo
Forums / General Questions / How do I send BCC to myself when I Send Email to Customer?

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

Locked

Views: 4,554

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
14 Aug 2008, 11:14 PM
#1
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

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.

15 Aug 2008, 12:35 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,694
Plugin Contributions:
56

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

One option would be

admin->configuration->email options->email archiving active = true

and then download the email archive manager. Not exactly what you wanted, but close.

15 Aug 2008, 12:53 AM
#3
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

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

Hello SW,

I've already done that, and for the most part that works.

However, it doesn't render the email in the same way. Line breaks are lost.

I much prefer to see the actual that went out as-is.

I find that the easiest thing is when the email bcc's to me and I can archive them in my email client.

It allows for easy access without having to go into to admin, and I can print copies if need be.

Thanks!!

15 Aug 2008, 1:04 AM
#4
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,694
Plugin Contributions:
56

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

There's nothing built in to do this. You'd have to write code.

15 Aug 2008, 7:45 PM
#5
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

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

Convinced, I am, that there is a script that takes the values typed into the text boxes and merges them with the email template and builds an email based on the protocols. I'm sure I can insert something that would BCC my admin address.

I'll have to find it on my own.

I was hoping someone would be able to tell me which file to look in.

15 Aug 2008, 11:21 PM
#6
drbyte avatar

drbyte

Sensei

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

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:$mail->Subject = $email_subject; $mail->From = $from_email_address;Insert the extra code as shown:```
$mail->Subject = $email_subject;
[B]
if (IS_ADMIN_FLAG === true && $module == 'direct_email') {
$mail->AddBCC(STORE_OWNER_EMAIL_ADDRESS, STORE_NAME);
}
[/B]

  $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
16 Aug 2008, 1:08 PM
#7
zinfandel avatar

zinfandel

Zen Follower

Join Date:
Feb 2007
Location:
NNJ
Posts:
205
Plugin Contributions:
0

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.

20 Aug 2008, 12:55 PM
#8
seano avatar

seano

New Zenner

Join Date:
Nov 2007
Posts:
2
Plugin Contributions:
0

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

Zinfandel:

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!