If you setup a rule with the action to send an email you get the following error.

Warning: preg_match_all() expects parameter 2 to be string, array given in Drupal\typed_data\PlaceholderResolver->scan() (line 195 of modules\contrib\typed_data\src\PlaceholderResolver.php).
Drupal\typed_data\PlaceholderResolver->scan(Array) (Line: 63)

This is caused by the email addresses in the 'to' field being stored in an array and then passed to preg_match_all() before being converted into a string.

CommentFileSizeAuthor
#3 fix-email-to-field-2824331.patch1000 bytessimonmc

Comments

simonmc created an issue. See original summary.

josephleon’s picture

I'll take a swing at this.

simonmc’s picture

StatusFileSize
new1000 bytes
simonmc’s picture

Status: Active » Needs review
manuga’s picture

I get the same error but when the 'reply' field is empty.
If i put an address in that field, then i don't get an error but the email never is send.
I tried the patch #3 without success.
Error:

Warning: preg_match_all() expects parameter 2 to be string, array given in Drupal\typed_data\PlaceholderResolver->scan() (line 186 of sites/xxx/modules/contrib/typed_data/src/PlaceholderResolver.php). 
Drupal\typed_data\PlaceholderResolver->scan(Array) (Line: 51)
fago’s picture

Status: Needs review » Closed (outdated)