The attached patch adds a checkbox to the email field contact form to also allow sending a copy of the message to the sender.
This is done by setting the Bcc-header to the sender address.

comments?

CommentFileSizeAuthor
#3 email.sendtoself.patch2.67 KBeelkeblok
email-cc-self-1.patch935 bytesray007
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RobLoach’s picture

Version: 5.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

New features will have to go into the Drupal 6 branch, and then be ported.

eelkeblok’s picture

Would this still need a port to D6, or should it now be a port to D7? I'd do the port to D6 because I'm working on a D6 site, but am not quite ready for D7.

eelkeblok’s picture

Status: Patch (to be ported) » Needs review
FileSize
2.67 KB

Well, I did the port anyway, hope it can be adopted as is :)

I did take a slightly different approach; instead of doing a Bcc on the actual message, I am sending the copy as a separate email; one of the purposes of having an email contact form in the first place is so that the delivery address is not revealed to the sender by the web site. This obviously is cut short if the website then sends the actual email also to the sender, with the recipient email right there in plain sight. (Of course the recipients address is still revealed to the sender of the recipient chooses to respond, but not if they choose to ignore the message).

This approach also has the added benefit of being able to reword the message slightly.

HippoOnDiet’s picture

eelkeblok,

Thank you for providing this patch!
I did download and tested it on my test server and it works the cc to self field.