Skip to content

mitchellkrogza/AjaxForm-PHPMailer-reCAPTCHA

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AjaxForm - SMTP & reCAPTCHA v3

Simple form using Ajax, validations, SMTP and reCAPTCHA v3 for PHP.

raspgot

Live Demo

You can try this: https://dev.raspgot.fr/github/contact-form-recaptcha-v3

Features

  • Ajax submission
  • SMTP Authentication
  • Google reCAPTCHA v3
  • Validation and inputs security (PHP and JS)

Installation

Use clone command or direct download

git clone https://github.com/raspgot/AjaxForm-PHPMailer-reCAPTCHA.git
cd AjaxForm-PHPMailer-reCAPTCHA
php -S localhost:8000

Or use XAMMP

Configuration

SMTP sender → HERE
GOOGLE keys → HERE
More configuration example → HERE

AjaxForm.php
Timezones doc → HERE

date_default_timezone_set('America/Los_Angeles');     

const HOST = 'mail.infomaniak.com'; #SMTP server
const USERNAME = ''; #SMTP username
const PASSWORD = ''; #SMTP password
const SECRET_KEY = ''; #GOOGLE secret key

AjaxForm.js

const publicKey = ''; // GOOGLE public key

index.html

<script src="https://www.google.com/recaptcha/api.js?render=GOOGLE_PUBLIC_KEY"></script>

Author

logo

You can visit my Portfolio and star this repo if you like it 🤖

Dependencies

About

Simple form using Ajax, validations, SMTP and reCAPTCHA v3 for PHP.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 48.6%
  • HTML 30.5%
  • JavaScript 20.9%