Can''t send to CCK email address

groovypower - June 1, 2008 - 08:40
Project:Actions token email
Version:5.x-1.0
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have a CCK field %field_email that I'd like to use as an email address on a new post. Is there a way to use this instead of %author or a real email address?

On the token %field_email-email, I get the error:

Please enter a valid email address or %author.

Seems to be validated in code below but I do not know how to edit this:

function actions_token_email_send_email_action_validate($form_id, $form_values)
{
  // Validate the configuration form.
  if (!valid_email_address($form_values['recipient']) && $form_values['recipient'] != '%author') {
    // We want the literal %author placeholder to be emphasized in the error message.
    form_set_error('recipient', t('Please enter a valid email address or %author.', array('%author' => '%author')));
  }
}

#1

groovypower - June 2, 2008 - 02:36

Just looked at the Drupal 6 version of token module and noted they do not validate the email address or force it to be the author of the post. Is there any reason other than the obvious safety involved to the validation section of the code?

#2

cybershan - November 23, 2008 - 15:45

I encountered the same problem, any ideal to fixed this problem?

 
 

Drupal is a registered trademark of Dries Buytaert.