@NagarjunaS16644648use sendsimpleemail activity in pega. Set appropriate email id to a property and use that in this activity in To parameter. And pass other respective parameters to the activity.
@NagarjunaS16644648 in the validateandsend… Button you will be calling sendsimpleemail activity. Before that step you need to set email id. For that, you need to set both registered and alternate email to different properties. Eg:- regemailid, altemailid… In your case check the dropdown property to pick the email id. On change of dropdown do post value action. It will be in clipboard. Using that you can use regemailid/altemailid
Create Email Account rule (under Integration-Resources) → To connect to the email server
Call activity on click action set of the button which will have below mentioned steps:
1.set param.To with email selected, Param.Subject with the subject & other param for the OOTB SendSimpleEmail activity.
use when condition to decide the email id - .dropdownProperty == “Registered Email” then set the registered email address value otherwise set the property value you used for the input text box used in UI. Additionally you can add validemailaddress edit-validate rule on the textinput property for validation.