in the `/node/[nid]/webform/emails/1` screen, has anyone built functionality to add a "cc" field after the "email address" field?
Allowing a second set of addresses to be CC'ed?
for example

I have an issue where an email needs to be sent to a person and to a ticket tracking system, but the ticket tracking system can't handle an email sent TO: multiple addresses.
Where : "real_person@domain.com,ticket_system@domain.com" doesn't work and the ticket system chokes on the email being sent that way.
It needs to be a CC value.
Has anyone done this? or know of a way of handling this?
This is a complex webform with many conditional email triggers. 12 different email triggers, each conditional for various select options.
Thank you.
| Comment | File | Size | Author |
|---|
Comments
Comment #2
alphex commentedComment #3
damienmckennaThis patch adds support for sending emails via CC.
The emails list:

The email form:

What the email headers look like after sending.

Comment #5
damienmckennaNot sure what's up with the tests, but I'm going to write a new test to check the email handling.
Comment #6
damienmckennaThis fixes a few minor bugs in the last patch, and adds a test that steps through the email creation process. Next up, testing email creation after a form submission.
Comment #8
damienmckennaEmail submission tests. Woot.
Comment #10
damienmckennaI opened a support request about the test errors: #2938323: Webform test runs are throwing a drush error
Comment #11
liam morlandComment #12
damienmckennaForgot to unassign it, but a bug was discovered so I'll continue working on it.
Right now it doesn't handle having separate CC addresses depending upon different values:

Comment #13
damienmckennaThis should throw a test failure.
Comment #15
damienmckennaOk, this is a better test - make sure that one of the TO addresses was used, that one of the CC addresses was used and that the email was not CC'd to a TO address.
Comment #17
damienmckennaAnd I think this solves the problem :)
Comment #18
damienmckennaComment #19
damienmckennaOk, another thing.. BCC! :)
Comment #20
chris matthews commentedThe patch in #19 does not apply to the latest 7.x-4.x-dev so it will need a reroll.
Comment #21
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.