You are being asked to design an email sending process by using informatica email task where your application is able to send email communication in case of some records got rejected by INFORMATICA ETL, its being expected that business user should also have visibility to those records instead of just having an application process failure notification.
Solution : This also can be achieved by (g , a) Email Variables.
(%g) - To attach session log.
(%a<>) - To attach file, Absolute path need to be given <>.
Code Sample to be written in Email Task
Please find attached log for further investigation.
Screen shot -