Please see my job as below:
Which connection type are you using between your subjob and tSendmail component? OnsubjobOk or Iterate row?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Learn how to do cool things with Context Variables
Find out how to migrate from one database to another using the Dynamic schema
Pick up some tips and tricks with Context Variables