This code will help you use AJAX in WordPress Front End.
This function will list all the files from a folder.
A PHP function that tests if an email is valid.
Here is a php function with which you can send an email with normal text or in html format.
Here is an example on how to get data from XML files using PHP.