/bootstrap3-contact-form

Bootstrap 3 Contact Form with Captcha

Primary LanguagePHPMIT LicenseMIT

bootstrap3-contact-form

Bootstrap 3 Contact Form with Captcha

A simple bootstrap 3 contact form using SecureImage Captcha. Submitted messages are sent to a specified email address using SMTP with support for SSL or TLS transport.

Dependencies

PHP

HTML/JS

Configuration

Configuration values to the contact form are passed in via Environment Variables. The following variables need to be defined:

Name Description
FEEDBACK_HOSTNAME Host name for SMTP server
FEEDBACK_EMAIL Email address to authenticate to SMTP server with
FEEDBACK_PASSWORD Password to authenticate to SMTP server with
FEEDBACK_ENCRYPTION If specified will use encryption. Valid values: TLS or SSL
FEEDBACK_SKIP_AUTH Optional If specified, will not authenticate with email/password

Environment variables can be specified in a variety of ways. For example, if using Apache (and mod_env is enabled), they can be specified in .htaccess:

SetEnv FEEDBACK_HOSTNAME smtp.gmail.com
SetEnv FEEDBACK_EMAIL me@gmail.com
SetEnv FEEDBACK_PASSWORD my!password!
SetEnv FEEDBACK_ENCRYPTION TLS

Check It Out

Demo: http://jonbake.com/demos/contact-form/

Blog Posts: Bootstrap 3 Contact Form with Captch A Better Contact Form