Bash script read specific value from files of an entire folder

Hello,
I heva a problem creating a script that read specifc value from all the files of an entire folder

I have a number of email files into a directory and i need to extrect from each file 2 specific values.
After that i have to put them into a new file that looks like that:

To: value1

value2

This is what i want to do, but i don't know how to create the script:

ls -l | awk '{print $9 }' >tmpfile - i am putting the name of the files into a temp file
date=`date +"%T"` - used for the name of a file
var1=`cat tmpfile | grep "To: 0" | awk '{print $2 }' | cut -b -10 ` - the first specific value from file(phone number)
var2=cat file | grep Subject | awk '{print $2$3$4$5$6$7$8$9$10 }' - the second specific value from file(subject)
echo "To: 4"$var1""  > sms-$date - put the first value in a new file on the first row
echo ""$var2"" >>sms-$date put the second value in the same file on the second row

and do the same for every file in the directory

I tried using while and for functions but i couldn't finalize the script

Thank You

If you provide sample input and sample output it will be much more easy to understand.
For e.g. are the email and subject in each file, on the same line?

Does every email have a subject? so on. So some input and output sample will be very useful to resolve it.

Here is roughly how you want the outermost loop to be

ls -1|while read a;do

done