Skip to content

It is a fully responsive HTML5 - JavaScript contact form. It can send emails through the PHP mail() function or through a SMTP server by making use of the PHPMailer class (https://github.com/phpmailer/phpmailer)

License

Notifications You must be signed in to change notification settings

SvenKortekaas/PHP-SMTP-ContactForm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-SMTP-ContactForm Code Climate Issue Count License 	GPL-3.0 PHP Version 5.2

It is a fully responsive HTML5 - JavaScript contact form. It can send emails with the PHP mail() function or through a SMTP server by making use of the PHPMailer class (https://github.com/phpmailer/phpmailer)


Besides that it also has a built-in anti-spam control. It uses the reCAPTCHA from Google (https://www.google.com/recaptcha/intro/index.html)


Minimal PHP Version is 5.2

Install

For the reCAPTCHA you need to have a site-key and a secret key and fill it in on index.php at the right place.
For the secret look for this code:

//Set here your GOOGLE RECAPTCHA2 SECRET KEY
$secret = 'GOOGLE RECAPTCHA2 SECRET KEY';

For the site key look for this code:
```html
```

Set $SMTPmail to TRUE if you want to use the SMTP mail method. But.. You need to have a SMTP server with the right credentials to make it work. See the code in index.php to change the right fields.

Leave it to FALSE to use the PHP mail() method. Set the right settings for your own email.
```php //Set this to TRUE for SMTP mail otherwise it will use the PHP mail() function $SMTPmail = FALSE; ```

You can also change the color scheme in the CSS and add more or less fields in the form in index.php. That is up to you.

License

Copyright 2016 Sven Kortekaas

This file is part of PHP-SMTP-ContactForm.

PHP-SMTP-ContactForm is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PHP-SMTP-ContactForm is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PHP-SMTP-ContactForm. If not, see http://www.gnu.org/licenses/.

Contact

Name: Sven Kortekaas
Website: https://skortekaas.nl/
PGP Key: E8EB 6D69 6E00 BBC2

About

It is a fully responsive HTML5 - JavaScript contact form. It can send emails through the PHP mail() function or through a SMTP server by making use of the PHPMailer class (https://github.com/phpmailer/phpmailer)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published