I have created a rule for sending an email after a new user registered. I would like to add a Rules Condition to send the email to the target based on the selection in the registration form.
For example: if I select the country as india I need to send to email@example.com and for other firstname.lastname@example.org.
I have tried adding a condition in To mail receipt address:
$email = ($account->country == 'india'? email@example.com : 'firstname.lastname@example.org') echo $email;
Can you suggest how to handle the scenario?