Hi
Move tSendMail to a child job, check the option 'die on error' on tSendMail, so that the child job will die once the email adrees is invalid or does't exist, output the current email address to a file or a database. The job design as below:
parent job:
...other part of job--main--tFlowToIterate--iterate--tRunJob
on tRubJob: call the childjob and pass the current email address to child job, uncheck the option 'die on error', so that the job will continue to process next email adress even though child job fails on last email address.
child job:
tSendMail
|
onsubjoberror
|
tFixedFlowInput--main--file or DB component
on tFixedFlowInput: generate the current email address.
About how to pass a value from parent to child job, see
https://community.talend.com/t5/Design-and-Development/Passing-context-parameters-in-a-tRunJob/td-p/...