Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#3 | email.sendtoself.patch | 2.67 KB | eelkeblok |
email-cc-self-1.patch | 935 bytes | ray007 |
Comments
Comment #1
RobLoachNew features will have to go into the Drupal 6 branch, and then be ported.
Comment #2
eelkeblokWould 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.
Comment #3
eelkeblokWell, 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.
Comment #4
HippoOnDiet CreditAttribution: HippoOnDiet commentedeelkeblok,
Thank you for providing this patch!
I did download and tested it on my test server and it works the cc to self field.