Blame | Last modification | View Log | Download
# Contact-Form-PHPSimple and secure bootstrap contact form using Ajax, validations inputs, SMTP protocol and Google reCAPTCHA v3 in PHP.## Live DemoYou can try this here: https://dev.raspgot.fr/github/contact-form-php## Features* Boostrap 4* Ajax submission* Google reCAPTCHA v3* PHPMailer SMTP Authentication* Validation and inputs security (PHP and JS)## InstallationUse clone command or [direct download](https://github.com/raspgot/Contact-Form-PHP/archive/master.zip)```shellgit clone https://github.com/raspgot/Contact-Form-PHP.gitcd Contact-Form-PHPphp -S localhost:8000```Or use [XAMMP](https://www.apachefriends.org)## ConfigurationSMTP sender → [HERE](https://www.infomaniak.com/fr/hebergement/web-et-mail/hebergement-mail)GOOGLE keys → [HERE](https://www.google.com/recaptcha/intro/v3.html)More configurations examples → [HERE](https://github.com/PHPMailer/PHPMailer/tree/master/examples)**AjaxForm.php**Timezones doc → [HERE](https://www.php.net/manual/fr/timezones.php)```phpdate_default_timezone_set(''); # your countryconst HOST = ''; # SMTP serverconst USERNAME = ''; # SMTP usernameconst PASSWORD = ''; # SMTP passwordconst SECRET_KEY = ''; # GOOGLE secret key```**AjaxForm.js**```javascriptconst publicKey = ''; // GOOGLE public key```**index.html**```html<script src="https://www.google.com/recaptcha/api.js?render=GOOGLE_PUBLIC_KEY"></script>```## AuthorYou can visit my [Portfolio](https://raspgot.fr) and star this repo if you like it 🤖## Dependencies* [PHPMailer](https://github.com/PHPMailer/PHPMailer)* [reCAPTCHA PHP client library](https://github.com/google/recaptcha)* [Bootstrap](https://getbootstrap.com)* [Jquery](https://github.com/jquery/jquery)* [jquery-validation](https://github.com/jquery-validation/jquery-validation)