Contact form for Wordpress
Contact form for Wordpress is a plugin for Wordpress to display and process a contact form at a desired location using a shortcode. Please node that this plugin is no longer supported since I don't work with Wordpress anymore.
The shortcode to set at a desired location: tc_contact_form
This shortcode is exchanged with the contact form in the frontend output:
The backend offers the following options:
Google's Recaptcha is also implemented and can be activated optionally to prevent spam.
Some workarounds were necessary. The plugin uses the Wordpress function wp_mail to send the emails. Unfortunately, this function doesn't send attachments as long as these are not located within the WordPress upload directory. This requires the following workaround: Attachments must be moved from upload_tmp_dir to a newly created directory (contact-form) in /wp-content/uploads/ before wp_mail is called. Unfortunately, this can lead to conflicts with other plugins that want to redirect uploaded files to another upload directory. Since wp_mail ignores the specification of the Return-Path in the email header, another workaround was due. Furthermore, mime check for uploaded files will be disabled to allow every mime type as attachment.
Listed in the official Wordpress plugin directory:
- Version 2.2.0: Last version, not listed in the official Wordpress plugin directory
- Version 2.1.0: Resolved conflict with upload directory for attachments with other plugins
- Version 2.0.1: First public release
- Version 1.0.0: Initial version
Categories: Wordpress CMS PHP