I fear it will terminate with the current running php script. Try making your php script set a variable, like touch a file or something on the file system. Then on the cron job set the mail.php to run every 5 seconds or 5 minutes whatever. If the variable is set the mail.php actually does it work, else it exits.
Saludos
Gerardo