i have to send the email once the task is approved
can someone suggest me example which i can refer for email configuration for From,To, Subject, CC
Discussion posts and replies are publicly visible
Did you check the documentation? There are some examples of how to configure them properly:
https://docs.appian.com/suite/help/22.3/Send_Email_Smart_Service.html
https://docs.appian.com/suite/help/22.3/Configuring_Custom_Email_Senders.html