Is it possible send webform data in email to all users of a specific role?
In the webform email settings there is no such option.
I also tried with Rules, but in rules the webform tokens are rendering the webform submitted data.
Here is my rule attached.
{ "rules_send_email_to_ce_user_on_webform_submit" : {
"LABEL" : "Send email to CE user on webform submit",
"PLUGIN" : "reaction rule",
"ACTIVE" : false,
"OWNER" : "rules",
"REQUIRES" : [ "rules", "webform_rules" ],
"ON" : { "webform_rules_submit" : [] },
"IF" : [
{ "webform_has_id" : {
"form_id" : "[form-id:value]",
"selected_webform" : { "value" : { "webform-client-form-121" : "webform-client-form-121" } }
}
}
],
"DO" : [
{ "webform_submissions_load" : {
"USING" : { "nid" : "121", "sid" : [ "data:sid" ] },
"PROVIDE" : { "submissions" : { "submissions" : "Fetched submissions" } }
}
},
{ "mail_to_users_of_role" : {
"roles" : { "value" : { "11" : "11" } },
"subject" : "Form submission from: [node:title]",
"message" : "DATA\r\n[data:data]\r\n\r\nRAW\r\n[data:data-raw]\r\n\r\nField value\r\n[data:title-value]"
}
}
]
}
}
Any other method?