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 firstname.lastname@example.org and for other email@example.com.
I have tried adding a condition in To mail receipt address:
$email = ($account->country == 'india'? firstname.lastname@example.org : 'email@example.com') echo $email;
Can you suggest how to handle the scenario?