The following rule works fine, only it adds always a blank before and after the emailaddress in the database table . And that gives an error when sending the newsletter.
{ "rules_webform_block_to_simplenews" : {
"LABEL" : "Webform Block to simplenews",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "webform_rules", "rules", "simplenews_rules" ],
"ON" : { "webform_rules_submit" : [] },
"IF" : [
{ "webform_has_id" : {
"form_id" : "webform-client-form-113",
"selected_webform" : { "value" : { "webform-client-form-113" : "webform-client-form-113" } }
}
}
],
"DO" : [
{ "simplenews_rules_action_subscribe" : { "mail" : "[data:e_mail-value]", "tid" : "211", "confirmation" : "2" } }
]
}
}