=== Simple Basic Contact Form === Plugin Name: Simple Basic Contact Form Plugin URI: https://perishablepress.com/simple-basic-contact-form/ Description: A secure contact form that’s fast and flexible. Tags: contact, form, contact form, email, mail, captcha, spam, anti spam, anti-spam, antispam Author: Jeff Starr Author URI: https://plugin-planet.com/ Donate link: https://m0n.co/donate Contributors: specialk Requires at least: 4.1 Tested up to: 4.9 Stable tag: 20171024 Version: 20171024 Requires PHP: 5.2 Text Domain: scf Domain Path: /languages License: GPL v2 or later A clean, secure, plug-&-play contact form for WordPress. == Description == [Simple Basic Contact Form](https://perishablepress.com/simple-basic-contact-form/) is a clean, secure, plug-&-play contact form for WordPress. Minimal yet flexible, SBCF delivers clean code, solid performance, and ease of use. No frills, no gimmicks, just a straight-up contact form that's easy to set up and customize. **Overview** * Display form anywhere using shortcode or template tag * Sends descriptive, well-formatted, plain-text messages * Blocks spam and protects against malicious content * Contact form is easy to configure via the plugin settings * Provides a blazing fast, well-optimized contact form * Code is lightweight, flexible, and standards-compliant **Core Features** * Optionally send a carbon copy of each email message * Slick, toggling panels on the plugin settings screen * Style the form via the settings screen using custom CSS * Provides Template Tag to display SBCF anywhere in your theme * Provides Shortcode to display SBCF on any WP Post or Page * Displays customizable confirmation message to the sender * Customizable success message can include email content * Customizable placeholder text for all form fields * Option to use PHP's `mail()` or WP's `wp_mail()` **Anti-spam & Security** * Optionally display anti-spam captcha to visitors * Protects against bad bots, malicious input, and other threats * Clear error messages to help users complete required fields **Awesome Performance** * Built with the WP API for optimal security and performance * Custom CSS styles load only where the contact form is displayed * Clean source code with proper formatting, alignment and spacing * Squeaky-clean PHP and valid HTML5 output **More Features** * Works perfectly without JavaScript! * Option to reset default settings * Options to customize many aspects of the form * Option to specify a specific time offset for your time zone * Option to enable, disable, and customize default SBCF styles * Email message includes IP, host, agent, and other user details * Customize field captions, error messages, and success message * Optionally hide Message field to make a simple opt-in form Plus much more! :) Simple Basic Contact Form supports translation into any language. Current translations include: * Dutch * French * German * Spanish * Romanian == Installation == **Installation** 1. Upload the plugin to your blog and activate 2. Visit the settings to configure your options [More info on installing WP plugins](http://codex.wordpress.org/Managing_Plugins#Installing_Plugins) **Usage** Once the settings are configured, you can display the form anywhere using the Shortcode or Template Tag. __Shortcode__ Use the SBCF Shortcode to display the contact form on any WP Post or Page: [simple_contact_form] __Template tag__ Use the SBCF Template Tag to display the contact form anywhere in your theme template: **Upgrades** To upgrade SBCF, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically. __Note:__ uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database. **Restore Default Options** To restore default plugin options, either uninstall/reinstall the plugin, or visit the plugin settings > Restore Default Options. **Uninstalling** Simple Basic Contact Form cleans up after itself. All plugin settings will be removed from your database when the plugin is uninstalled via the Plugins screen. **Resources** * Visit the [SBCF Homepage](https://perishablepress.com/simple-basic-contact-form/) * View a [complete set of CSS hooks](https://perishablepress.com/simple-basic-contact-form/#markup-styles) == Upgrade Notice == To upgrade SBCF, remove the old version and replace with the new version. Or just click "Update" from the Plugins screen and let WordPress do it for you automatically. __Note:__ uninstalling the plugin from the WP Plugins screen results in the removal of all settings from the WP database. == Screenshots == 1. Simple Basic Contact Form: Displayed on WP Twenty Sixteen theme 2. Simple Basic Contact Form: Plugin settings screen (panels toggle open/closed) More screenshots available at the [SBCF Homepage](https://perishablepress.com/simple-basic-contact-form/#screenshots). == Frequently Asked Questions == **What is the plugin setting for the "From" email header?** That setting enables you to customize the address used as the "From" header for email messages. If your email address is a domain-based address, then this setting should be the same as the previous Email setting. Otherwise, if you are using a 3rd-party email service, this setting should be a local, domain-based address. If you find that email messages are getting sent to the spam bin, this setting may help. **Got a question?** Send any questions or feedback via my [contact form](https://perishablepress.com/contact/). Thanks! :) Note: for a contact form with more options and features, check out [Contact Coldform](https://plugins.svn.wordpress.org/contact-coldform/). == Support development of this plugin == I develop and maintain this free plugin with love for the WordPress community. To show support, you can [make a cash donation](https://m0n.co/donate), [bitcoin donation](https://m0n.co/bitcoin), or purchase one of my books: * [The Tao of WordPress](https://wp-tao.com/) * [Digging into WordPress](https://digwp.com/) * [.htaccess made easy](https://htaccessbook.com/) * [WordPress Themes In Depth](https://wp-tao.com/wordpress-themes-book/) And/or purchase one of my premium WordPress plugins: * [BBQ Pro](https://plugin-planet.com/bbq-pro/) - Pro version of Block Bad Queries * [Blackhole Pro](https://plugin-planet.com/blackhole-pro/) - Pro version of Blackhole for Bad Bots * [SES Pro](https://plugin-planet.com/ses-pro/) - Super-simple & flexible email signup forms * [USP Pro](https://plugin-planet.com/usp-pro/) - Pro version of User Submitted Posts Links, tweets and likes also appreciated. Thanks! :) == Changelog == **20171024** * Adds extra `manage_options` capability check to modify settings * Streamlines Support panel in plugin settings * Tests on WordPress 4.9 **20170801** * Updates GPL license blurb * Adds GPL license text file * Tests on WordPress 4.9 (alpha) **20170325** * Tweaks some default form styles * Adds setting for "From" email address * Changes form action attribute to blank value * Adds code tags to message results display * Refines display of settings panels * Updates show support panel in plugin settings * Replaces global `$wp_version` with `get_bloginfo('version')` * Generates new default translation template * Tests on WordPress version 4.8 **20161117** * Refactored entire codebase * Improved logic of contact form * Improved sanitization of form input * Improved handling of character encoding * Removed deprecated screen_icon() * Removed deprecated offset setting * Removed some deprecated files * Added carbon-copy email message * Refined plugin settings page * Updated plugin author URL * Updated URL for rate this plugin links * Changed stable tag from trunk to latest version * Return instead of echo results in `scf_process_contact_form()` * Changed default setting for `scf_mail_function` * Refined default settings for label values * Improved styles for error message and fields * Settings now accept single or double quotes * Regenerated default language template * Tested on WordPress version 4.7 (beta) **20160813** * Streamlined & optimized plugin settings page * Removed support for Intranet Plus plugin * Removed quotes around charset attributes * Changed menu link from "SBCF" to "Contact Form" * Replaced `_e()` with `esc_html_e()` or `esc_attr_e()` * Replaced `__()` with `esc_html__()` or `esc_attr__()` * Replaced plain plugin logo with an actual icon ;) * Added plugin icons and larger banner image * Improved translation support * Added more allowed attributes for custom content * Added option to make message field optional * Email message now includes the sender's email address * Fine-tuned form styles * Tested on WordPress 4.6 **20160408** * Added Reply-To email header * Added support for Intranet Plus plugin * Added UTF-8 as default charset for Content-Type header * Renamed scf-ro_RO.pot to scf-ro_RO.po * Added French translation (thanks to mier) * Added Romanian translation (thanks to Serge) * Added white-space pre-wrap to form results * Increased size of "Custom CSS styles" setting * Added new function, scf_default_styles() * Replaced icon with retina version * Added screenshot to readme/docs * Added retina version of banner * Reorganized and refreshed readme.txt * Tested on WordPress version 4.5 beta **20151111** * Updated German translation (Thanks to Sven Bamberger) * Updated heading hierarchy in plugin settings * Refined scf_process_contact_form() * Added scf_sanitize_text() * Added scf_sanitize_message() * Added scf_full_message filter hook * Added scf_short_results filter hook * Added scf_full_results filter hook * Added scf_send_email action hook * Updated translation template file * Updated minimum version requirement * Tested on WordPress 4.4 beta * Optimized email headers **20150808** * Tested on WordPress 4.3 * Updated minimum version requirement **20150507** * Tested with WP 4.2 + 4.3 (alpha) * Changed a few "http" links to "https" * Added Dutch translation; thanks to [Martijn van Es](https://github.com/devanes) * Bugfix: HTML attributes were being stripped from custom error messages **20150317** * New! added subject field to the form * Tested with latest version of WP (4.1) * Increased minimum version to WP 3.8 * Removed deprecated screen_icon() * Added $scf_wp_vers for version check * Added UTF-8 as default for WP option used in htmlentities() * Replace sanitize_text_field() and filter_var() with sanitize_email() for email address * Streamline/fine-tune plugin code * Added nonce security to the form * Localized some missing strings * Added Reply-To and Return-Path to email headers * Added Text Domain and Domain Path to file header * Replaced default .mo/.po templates with .pot template **20140925** * Tested on latest version of WordPress (4.0) * Increased min-required version to WP 3.7 * Added conditional check to min-version function * Reorganized the plugin settings page * Added .scf class to both form div and success div * Added scf_filter_contact_form filter to form output * Fixed case-sensitivity bug for challenge question * Replaced 'UTF-8' with get_option('blog_charset') in scf_process_contact_form() * Replaced stripslashes(), htmlentities(), filter_var() with sanitize_text_field() * Fixed weird character issue and backslash issue (related) * Applied i18n to email content and success message * Generated new mo/po translation files **20140305** * Added default templates for translation/localization * Added language support for Spanish * Changed default option for Time Offset **20140123** * Tested with latest WordPress (3.8) * Added trailing slash to load_plugin_textdomain() * Fixed 3 incorrect _e() tags in core file * Localized default options **20131107** * Renamed `add_plugin_links` to `add_scf_links` * Revised "Welcome" panel in plugin settings **20131106** * Added option to hide extra infos displayed in the success message * Fixed logic for using `mail()` vs `wp_mail()` * Removed "Δ" from `die()` for better security * Added i18n/localization support * Added "rate this plugin" links * Added uninstall.php file * Added parameters to `htmlentities` (fixes weird characters issue) * Replaced `get_permalink()` with empty value in the form * Changed `$date` to use WordPress settings and format * Added German translation; thanks to [Benedikt Quirmbach](http://www.LivingDocs.de) * Fixed character encoding via `filter_var` and `html_entity_decode` in `scf_process_contact_form()` * Tested on latest version of WordPress (3.7) * General code cleanup and maintenance **Version 20130725** * Tightened form security * Tightened plugin security **Version 20130712** * Fix time offset setting * Defined UTC as default time * Improved localization support * Replaced some deprecated functions * Added options to customize placeholder text for form inputs * Added option to use either PHP's mail() or WP's wp_mail() (default) * Overview and Updates panels now toggled open by default * General code check n clean **Version 20130104** * "Send email" (submit) button now available for translation * Added option to disable the Captcha (challenge question/response) * Added option to disable the automatic carbon copy * Added margin to submit button (now required in 3.5) * Fixed "Undefined index" warning **Version 20121205** * Now hides ugly fieldset borders by default * Errors now include placeholder attributes * Anti-spam placeholder now displays challenge question * Removed blank line from successful message results * You can now use markup in custom prepend/append content * Custom CSS now loads on successful result output * Wrapped successful result output with div #scf_success * Segregated custom content for form and success results * Cleaned up some code formatting * Moved .clear div to optional custom content * Added link to SBCF CSS Hooks in Appearance options * Fixed the plugin's built-in time offset **Version 20121103** Initial release.