Added some email functions.
Include email functions.
Added locate and get template functions.
Added email header and footer template file.