Version Description
- custom-contact-forms.php - fixed email field will set reply to on emails
- custom-contact-forms-mailer.php - fixed email set as reply to on outgoing form emails
Download this release
Release Info
Developer | tlovett1 |
Plugin | Custom Contact Forms |
Version | 3.5.6 |
Comparing to | |
See all releases |
Code changes from version 3.5.5 to 3.5.6
- custom-contact-forms-mailer.php +6 -3
- custom-contact-forms.php +4 -3
- images/Thumbs.db +0 -0
- readme.txt +6 -2
custom-contact-forms-mailer.php
CHANGED
@@ -11,19 +11,22 @@ if (!class_exists('CustomContactFormsMailer')) {
|
|
11 |
var $subject;
|
12 |
var $body;
|
13 |
var $headers;
|
|
|
14 |
var $wp_mail_function;
|
15 |
|
16 |
-
function CustomContactFormsMailer($to, $from, $subject, $body, $wp_mail_function){
|
17 |
$this->to = $to;
|
18 |
$this->from = $from;
|
19 |
$this->subject = $subject;
|
20 |
$this->body = $body;
|
|
|
21 |
$this->wp_mail_function = $wp_mail_function;
|
22 |
}
|
23 |
|
24 |
function send(){
|
25 |
-
|
26 |
-
|
|
|
27 |
$this->addHeader('Return-Path: '.$this->from."\r\n");
|
28 |
$this->addHeader('X-mailer: ZFmail 1.0'."\r\n");
|
29 |
$this->body .= "\n\n\n----------\nSent by Custom Contact Forms\nA WordPress Plugin created by Taylor Lovett\nReport a Bug/Get Support: http://www.taylorlovett.com\n";
|
11 |
var $subject;
|
12 |
var $body;
|
13 |
var $headers;
|
14 |
+
var $reply_to;
|
15 |
var $wp_mail_function;
|
16 |
|
17 |
+
function CustomContactFormsMailer($to, $from, $subject, $body, $wp_mail_function, $reply_to = NULL){
|
18 |
$this->to = $to;
|
19 |
$this->from = $from;
|
20 |
$this->subject = $subject;
|
21 |
$this->body = $body;
|
22 |
+
$this->reply_to = $reply_to;
|
23 |
$this->wp_mail_function = $wp_mail_function;
|
24 |
}
|
25 |
|
26 |
function send(){
|
27 |
+
$reply = ($this->reply_to != NULL) ? $this->reply_to : $this->from;
|
28 |
+
$this->addHeader('From: '.$this->from."\r\n");
|
29 |
+
$this->addHeader('Reply-To: '.$reply."\r\n");
|
30 |
$this->addHeader('Return-Path: '.$this->from."\r\n");
|
31 |
$this->addHeader('X-mailer: ZFmail 1.0'."\r\n");
|
32 |
$this->body .= "\n\n\n----------\nSent by Custom Contact Forms\nA WordPress Plugin created by Taylor Lovett\nReport a Bug/Get Support: http://www.taylorlovett.com\n";
|
custom-contact-forms.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Custom Contact Forms
|
4 |
Plugin URI: http://taylorlovett.com/wordpress-plugins
|
5 |
Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form. <a href="options-general.php?page=custom-contact-forms">Settings</a>
|
6 |
-
Version: 3.5.
|
7 |
Author: Taylor Lovett
|
8 |
Author URI: http://www.taylorlovett.com
|
9 |
*/
|
@@ -1416,7 +1416,7 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1416 |
$body .= "Message: $message\n";
|
1417 |
$body .= "Message Type: $type\n";
|
1418 |
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "\n";
|
1419 |
-
$mailer = new CustomContactFormsMailer('admin@taylorlovett.com', $email, "CCF Message: $type", stripslashes($body), $admin_options[wp_mail_function]);
|
1420 |
$mailer->send();
|
1421 |
return true;
|
1422 |
}
|
@@ -1501,6 +1501,7 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1501 |
$fields = parent::getAttachedFieldsArray($_POST[fid]);
|
1502 |
$form = parent::selectForm($_POST[fid]);
|
1503 |
$checks = array();
|
|
|
1504 |
$cap_name = 'captcha_' . $_POST[fid];
|
1505 |
foreach ($fields as $field_id) {
|
1506 |
$field = parent::selectField($field_id, '');
|
@@ -1542,7 +1543,7 @@ the field names you want required by commas. Remember to use underscores instead
|
|
1542 |
unset($_SESSION[fields]);
|
1543 |
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "\n";
|
1544 |
$to_email = (!empty($form->form_email)) ? $form->form_email : $admin_options[default_to_email];
|
1545 |
-
$mailer = new CustomContactFormsMailer($to_email, $admin_options[default_from_email], $admin_options[default_form_subject], stripslashes($body), $admin_options[wp_mail_function]);
|
1546 |
$mailer->send();
|
1547 |
if (!empty($form->form_thank_you_page)) {
|
1548 |
header("Location: " . $form->form_thank_you_page);
|
3 |
Plugin Name: Custom Contact Forms
|
4 |
Plugin URI: http://taylorlovett.com/wordpress-plugins
|
5 |
Description: Guaranteed to be 1000X more customizable and intuitive than Fast Secure Contact Forms or Contact Form 7. Customize every aspect of your forms without any knowledge of CSS: borders, padding, sizes, colors. Ton's of great features. Required fields, captchas, tooltip popovers, unlimited fields/forms/form styles, use a custom thank you page or built-in popover with a custom success message set for each form. <a href="options-general.php?page=custom-contact-forms">Settings</a>
|
6 |
+
Version: 3.5.6
|
7 |
Author: Taylor Lovett
|
8 |
Author URI: http://www.taylorlovett.com
|
9 |
*/
|
1416 |
$body .= "Message: $message\n";
|
1417 |
$body .= "Message Type: $type\n";
|
1418 |
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "\n";
|
1419 |
+
$mailer = new CustomContactFormsMailer('admin@taylorlovett.com', $email, "CCF Message: $type", stripslashes($body), $admin_options[wp_mail_function], $admin_options[default_to_email]);
|
1420 |
$mailer->send();
|
1421 |
return true;
|
1422 |
}
|
1501 |
$fields = parent::getAttachedFieldsArray($_POST[fid]);
|
1502 |
$form = parent::selectForm($_POST[fid]);
|
1503 |
$checks = array();
|
1504 |
+
$reply = ($_POST[fixedEmail]) ? $_POST[fixedEmail] : NULL;
|
1505 |
$cap_name = 'captcha_' . $_POST[fid];
|
1506 |
foreach ($fields as $field_id) {
|
1507 |
$field = parent::selectField($field_id, '');
|
1543 |
unset($_SESSION[fields]);
|
1544 |
$body .= 'Sender IP: ' . $_SERVER['REMOTE_ADDR'] . "\n";
|
1545 |
$to_email = (!empty($form->form_email)) ? $form->form_email : $admin_options[default_to_email];
|
1546 |
+
$mailer = new CustomContactFormsMailer($to_email, $admin_options[default_from_email], $admin_options[default_form_subject], stripslashes($body), $admin_options[wp_mail_function], $reply);
|
1547 |
$mailer->send();
|
1548 |
if (!empty($form->form_thank_you_page)) {
|
1549 |
header("Location: " . $form->form_thank_you_page);
|
images/Thumbs.db
DELETED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.taylorlovett.com
|
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 3.0.1
|
7 |
-
Stable tag: 3.5.
|
8 |
|
9 |
Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
|
10 |
|
@@ -19,7 +19,7 @@ Special Features:
|
|
19 |
* Create __unlimited__ forms
|
20 |
* Create __unlimited__ fields
|
21 |
* Required Fields (New!)
|
22 |
-
* Create text fields, textareas,
|
23 |
* Custom HTML Forms Feature - if you are a web developer you can write your own form html and __use this plugin simply to process your form requests__. Comes with a few useful features.
|
24 |
* __Displays forms in theme files__ as well as pages and posts.
|
25 |
* Set a different destination email address for each form
|
@@ -76,6 +76,10 @@ Visit http://www.taylorlovett.com/wordpress-plugins for screenshots. Right now a
|
|
76 |
|
77 |
== Changelog ==
|
78 |
|
|
|
|
|
|
|
|
|
79 |
= 3.5.5 =
|
80 |
* custom-contact-forms.php - Plugin usage popover reworded
|
81 |
* css/custom-contact-forms-admin.css - Admin panel display problem fixed
|
4 |
Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers
|
5 |
Requires at least: 2.8.1
|
6 |
Tested up to: 3.0.1
|
7 |
+
Stable tag: 3.5.6
|
8 |
|
9 |
Gauranteed to be the most customizable and intuitive contact form plugin for Wordpress.
|
10 |
|
19 |
* Create __unlimited__ forms
|
20 |
* Create __unlimited__ fields
|
21 |
* Required Fields (New!)
|
22 |
+
* Create text fields, textareas, checkboxes, radio __(new)__ and dropdown __(new)__ fields!
|
23 |
* Custom HTML Forms Feature - if you are a web developer you can write your own form html and __use this plugin simply to process your form requests__. Comes with a few useful features.
|
24 |
* __Displays forms in theme files__ as well as pages and posts.
|
25 |
* Set a different destination email address for each form
|
76 |
|
77 |
== Changelog ==
|
78 |
|
79 |
+
= 3.5.6 =
|
80 |
+
* custom-contact-forms.php - fixed email field will set reply to on emails
|
81 |
+
* custom-contact-forms-mailer.php - fixed email set as reply to on outgoing form emails
|
82 |
+
|
83 |
= 3.5.5 =
|
84 |
* custom-contact-forms.php - Plugin usage popover reworded
|
85 |
* css/custom-contact-forms-admin.css - Admin panel display problem fixed
|