In order to submit mail forms with Php you can use its mail() function. In such cases security is very important and you should implement also antispam functions.
Please check this article with detailed instructions on setting up a secure php mail form: