You have not mentioned about how many fields do you have in your flat file,try to create two different mappings one for the file and another for the email.For map2 use std xsd for email structure and use ASMA and dynamic to fetch the file name and map accordingly.
set the condition in interface determination when all the fields are null operation map2 should call and configure receiver email channel to trigger the email.
Cheers
Pawan