Goal: to populate three fields(name,phone,email) with values from a referenced node(nodeA) when the new node(nodeB) is created.

I've been able to get the name and phone values populated fine but when I try to populate the email field I get:
"[referenced_node:field_email-raw]" is not a valid email address

The node reference does have a valid email value in the 'field_email' field, and I've also tried using the token: [referenced_node:field_email-formatted] with the same results

any pointers on what I'm doing wrong?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jday’s picture

Component: Rules Core » Rules Engine
FileSize
46.63 KB
44.39 KB

screenshots

mitchell’s picture

Title: error: not a valid email address » Email field does not accept tokens
Version: 6.x-1.1 » 6.x-1.x-dev
Component: Rules Engine » Provided module integration
Category: support » bug
Status: Active » Postponed (maintainer needs more info)

Just checking, you're using the email module, right?

jday’s picture

are you talking about the mimemail module or is there another email module?

I just ended up using node-reference to share info between related nodes.

mitchell’s picture

I was talking about Email Field module.

Nodereference works great with rules. And, it solves your issue here?

jday’s picture

ah right, I AM using the email field module, and the use of nodereference fixed my issue.

fago’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)
julia.rs’s picture

Version: 6.x-1.x-dev » 6.x-1.4
Component: Provided module integration » Rules Engine
Status: Closed (duplicate) » Active

I know this is old, but this is the exact issue I'm having. Unfortunately, my problem can't be solved with nodereference.

After a user is updated, I want to populate a content profile node with the user's current email address. Not every node of the content profile type has a user, though, so my understanding is nodereference can't help (because then the email field for profiles without users would be set to the admin email).

Everything works great -- except that when I use the [author:mail] token, it tells me it's not a valid email address, just as above.

Help?

BDaggerhart’s picture

Component: Rules Engine » Rules Core

I, too, am having this problem - I am attempting to populate a content cck field with the user's account email, and I keep getting this:

"[author-mail]" is not a valid email address

any thoughts on this? Looks like it's been awhile since anyone has looked at it...

TR’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 6 is no longer supported, as of two years ago.

If this issue still happens in Drupal 7, feel free to reopen the issue with updated details.