I am struggling for several hours to to define a Rule to send an E-mail to an user, who just has registrated.

In this E-Mail I would like to send information, which the user has filled in on the Content-Profile registration form.

The Trigger for this action is "User using a registration code"

In the PHP-Code i tried to use the offered "Token replacement patterns",
something like that:
$regcodeTest1 = [profile_node:field_firstnames];

But all of the Content profile fields are not available.

This message I get on the registration form.
Warning: Unable to get variable "profile_node".

Perhaps the content profile node is accessable, when user ist logged in?!

Has someone an idea to go on? Or an alternative way to access cck-field?

thanks al lot
markus

Comments

janipuni’s picture

I have the same problem.
Any ideas?

mk1000’s picture

active and current User, i used another event to send the E-Mail.

Now the event is "After saving new Content" [with registration the user creates a node with content-profile].

First i am setting a filter, which kind of content has been created.
Then in the rule i have tokens for [author:mail] and [node:field_registration_xyzl], etc.

This made it for me.

valius’s picture

I solved the problem too! Thank you!

stutibhavsar’s picture

I am working on Drupal 7 I have done the same as you have described. I gave event "After saving new content" and in action, I have selected "Send e-mail to all users of the role". But whenever I create a new content, I get an error : "Unable to send e-mail. Contact the site administrator if the problem persists." I have even installed SMTP module but still the same.

Can you please help me on this?

tukiebutie’s picture

Thank you so much for posting this. I was struggling with this matter for days!