I am trying to send an email to users contains information they put into their profile2 fields when they registered on the website.
My problem is that their is no email field token available in rules and I was wondering if their is a way to expose the account email token so that I send emails to the user.
The rule I have setup is as follows and I have exported the rule which can be found below.
Event: After saving a new profile
Actions: Send HTML e-mail
{ "rules_email_banking_details" : {
"LABEL" : "Email Banking Details",
"PLUGIN" : "reaction rule",
"OWNER" : "rules",
"REQUIRES" : [ "rules", "mimemail", "profile2" ],
"ON" : { "profile2_insert" : [] },
"DO" : [
{ "mimemail" : {
"key" : "[site:name]",
"to" : "[profile2:field_account_email]",
"subject" : "Banking Details for accounts that you must make a payment to.",
"body" : "[profile2:field_name_of_your_bank]",
"language" : [ "" ]
}
}
]
}
}
If anybody has some advice that could help it would be much appreciated.