Hi @jn93 ,
From my opinion, you may first load the file names to table like shown here.
And then use sql command to compare the two tables to find the files not exist in the folder and then store the result to the variable-filename, after that you may send mail with the filename.
execute-sql-tasks-in-ssis-output-parameters-vs-result-sets
A sample code like below you may edit as you need.
select string_agg(filename,',')
from table1
where name not in (select filename from table2)
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.