I have a simple name and email form built in Ajax, PHP and mySQL.

The user enters a name, and email address and the fields are saved into a database.

How can I once the name and email have been submitted, send a confirmation email to this user?