The function fieldactions_send_email_to_email_action creates a dblog entry of 'Sent email to %node_owner_mail', when it should be the email address entered into an email widget field.
So in line 523,
if (drupal_mail('fieldactions_general', 'fieldactions_mail_to_email', $field_value['email'], $language, $params, $from, TRUE)) {
watchdog('fieldactions', 'Sent email to %recipient', array('%recipient' => $vars['%node_owner_mail']));
}
else {
watchdog('error', 'Unable to send email to %recipient', array('%recipient' => $vars['%node_owner_mail']));
}
should be changed to
if (drupal_mail('fieldactions_general', 'fieldactions_mail_to_email', $field_value['email'], $language, $params, $from, TRUE)) {
watchdog('fieldactions', 'Sent email to %recipient', array('%recipient' => $field_value['email']));
}
else {
watchdog('error', 'Unable to send email to %recipient', array('%recipient' => $field_value['email']));
}
Comments
Comment #1
jajathejazzcat commentedHere is a patch.
Comment #2
deekayen commentedcommitted to HEAD and DRUPAL-6--1