PeopleCode Question:
Explain How to send email to the all employeee from the peoplesoft application when a certain event is true?
2. What is the event used to trigger?

Answer:
Create a workflow. In the workflow, use a query with active employess and their email ids as inputs. On the successfull occurence of the event, trigger this workflow using TriggerBusinessEvent.