2013-12-30-B

Code Refactoring
1: Added mail key index to params array
2: Mail Key value is now assigned before calling send mail or queue
mail function
3: Motified mail sending functions to use value supplied from caller