Can someone let me know why the script stops and sometimes works fine.
 
	Yet it might give out a variable error, or sometimes the script will stop on it own once the functions are finished, and sometimes it will throw out and error.
 
	I want the script to be in loop for each new email notification....and then process other functions without exiting or stopping @ times, which it does..
 
	 
 
	Attached is the script that i had been working....