how to send email using activity

Hi everyone,

my requirement is send email using activity based on the condition. My condition is Email drop down having two options

1.Registered Email

  1. Alternate Email

If i select registered email. Then send email to that mail id

If I select Alternate email.Then send email to that mail id

How do this

@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.

@Anoop Krishna: How to set conditions for picking right email iD. If select Email= Registered Email that is in paragraph control pricked to send email

If I select Email= Alternate Email That email that is text control is picked to send email

@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

@NagarjunaS16644648

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.

  1. Call SendSimpleEmail

Hi @NagarjunaS16644648 ,

In activity send email based on when a condition

Thanks

@abhirajg Thank sir