Can there be an option to BCC the email to admin so that they can track emails being sent. If not then a stats page would be a good idea, at least then I can track how many leads each node is generating.

Thanks
William Eaton

Comments

JmsCrk’s picture

Assigned: Unassigned » JmsCrk

BCC sounds like a good idea, but there might be an issue with privacy. If I was contacting someone through a website I might assume that only that person would read it, whereas with your suggestion the site owner (or whoever is BCCed) will see my note and get my contact details.

But your idea of a tracking / stats page might be okay - tracking how many emails are sent through each form but not keeping a record of their contents would be useful and anonymous.

What do you think?

willeaton’s picture

Sounds good, although as for the BCC, in my case I would need to be able to prove the leads, at least to start with (later on stats would be fine). I can deal with the privacy issue in the privacy policy, I wouldn't be keeping the data for mailing purposes. Any clues on how I can do it as a hack in the meantime? I looked at it and couldn't figure out the drupal_mail.

Thanks
Will

JmsCrk’s picture

Hi will

I haven't tested it, but i'm pretty sure you can add Bcc in as a header in the $message array

If you're using the d6 version, look for function authorcontact_mail and where it says:

$message['subject'] = t('Contact via @site', array('@site' => variable_get('site_name', 'Your website')));

... insert another line before or after it that says:

$message['headers'] = array('Bcc' => 'myname@example.com');

JmsCrk’s picture

I've added this to the d6 dev version, check it out if you can and let me know if it's working how you'd like - I haven't had time to do much testing.

JmsCrk’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Ela’s picture

Status: Closed (fixed) » Active

I noticed that using the BBC changes the email address on reply. Clicking on reply from inbox does not show the senders email address in the "To:" field.
When not using BBC, a user receives an email and when clicking on reply from their inbox the "TO:" field is automatically filled with the email address of the person who sent the email.
Is it possible to fix that so it works the same when bbc is used?

pieterdc’s picture

I use Mail Logger to keep track of all mails being sent.

pieterdc’s picture

Status: Active » Postponed (maintainer needs more info)

@Ela
I suppose you mean BCC instead of BBC.
Anyhow: does #721796: Default BCC used ('myname@example.com'), when I set it to custom value. fix your problem?

Ela’s picture

Hi... ooops :) Yes.. I meant BCC .. heehee :)
And.. no.. I tried the fix there, still run into the same problem. Clicking on reply from inbox does not show the senders email address in the "To:" field, instead the site email is there.... While without BCC it works that when you click on reply the "To" field gets automatically filled with the email address of the person who used the contact form.. (which is what I want)... :( Does it work well for you?

Ela’s picture

@Pieter #8.. does Mail Logger keep a copy of the email content as well or just let's you know that it was sent? (in which case the "recent log entry" records that too..)
(((((EDIT))))))) yes it does :) (went and searched the issues on Mail Logger to find out :)

fatpeter’s picture

Hi,

Is there an easy way to bcc admin in 5.1.1

I have been trying for days to do this but can't seem to get it. i found and example for version 6 but not 5

JmsCrk’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Features are being added to v 6 only. This feature is in version 6.

Ela’s picture

Status: Closed (works as designed) » Active

Deleted.. works

Ela’s picture

Status: Active » Closed (works as designed)
salientknight’s picture

Re #3 Actually all you have to do is add 'Bcc' => 'bccemail@mysite.org' to the $headers array around like 97 in the current version of mail.inc

This is a drupal core hack and not recommended (as it will go away on upgrade) but it can be helpful if you are trying to trouble shoot a mail problem.

Hope this helps someone...