Version Description
- Fixed bug in email settings
Download this release
Release Info
Developer | codepeople |
Plugin | Contact Form Email |
Version | 1.2.82 |
Comparing to | |
See all releases |
Code changes from version 1.2.81 to 1.2.82
- README.txt +5 -2
- cp-admin-int-list.inc.php +12 -2
- cp-main-class.inc.php +2 -2
- form-to-email.php +1 -1
README.txt
CHANGED
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
|
|
456 |
|
457 |
== Changelog ==
|
458 |
|
|
|
|
|
|
|
459 |
= 1.2.81 =
|
460 |
* Fixed bug in message deletion
|
461 |
|
@@ -1003,5 +1006,5 @@ When you click a field already added into the contact form builder area, you can
|
|
1003 |
|
1004 |
== Upgrade Notice ==
|
1005 |
|
1006 |
-
= 1.2.
|
1007 |
-
* Fixed bug in
|
456 |
|
457 |
== Changelog ==
|
458 |
|
459 |
+
= 1.2.82 =
|
460 |
+
* Fixed bug in email settings
|
461 |
+
|
462 |
= 1.2.81 =
|
463 |
* Fixed bug in message deletion
|
464 |
|
1006 |
|
1007 |
== Upgrade Notice ==
|
1008 |
|
1009 |
+
= 1.2.82 =
|
1010 |
+
* Fixed bug in email settings
|
cp-admin-int-list.inc.php
CHANGED
@@ -17,8 +17,18 @@ if (isset($_GET['a']) && $_GET['a'] == '1')
|
|
17 |
return;
|
18 |
}
|
19 |
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
$wpdb->insert( $wpdb->prefix.$this->table_items, array(
|
24 |
'form_name' => stripcslashes($_GET["name"]),
|
17 |
return;
|
18 |
}
|
19 |
|
20 |
+
$default_from = strtolower(get_the_author_meta('user_email', get_current_user_id()));
|
21 |
+
$domain = str_replace('www.','', strtolower($_SERVER["HTTP_HOST"]));
|
22 |
+
while (substr_count($domain,".") > 1)
|
23 |
+
$domain = substr($domain, strpos($domain, ".")+1);
|
24 |
+
$pos = strpos($default_from, $domain);
|
25 |
+
if (substr_count($domain,".") == 1 && $pos === false)
|
26 |
+
define('CP_CFEMAIL_DEFAULT_fp_from_email', 'admin@'.$domain );
|
27 |
+
else
|
28 |
+
define('CP_CFEMAIL_DEFAULT_fp_from_email', $default_from );
|
29 |
+
|
30 |
+
|
31 |
+
define('CP_CFEMAIL_DEFAULT_fp_destination_emails', get_the_author_meta('user_email', get_current_user_id()));
|
32 |
|
33 |
$wpdb->insert( $wpdb->prefix.$this->table_items, array(
|
34 |
'form_name' => stripcslashes($_GET["name"]),
|
cp-main-class.inc.php
CHANGED
@@ -112,7 +112,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
112 |
$default_from = strtolower(get_the_author_meta('user_email', get_current_user_id()));
|
113 |
$domain = str_replace('www.','', strtolower($_SERVER["HTTP_HOST"]));
|
114 |
while (substr_count($domain,".") > 1)
|
115 |
-
$domain = substr($domain, strpos("."
|
116 |
$pos = strpos($default_from, $domain);
|
117 |
if (substr_count($domain,".") == 1 && $pos === false)
|
118 |
define('CP_CFEMAIL_DEFAULT_fp_from_email', 'admin@'.$domain );
|
@@ -120,7 +120,7 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
120 |
define('CP_CFEMAIL_DEFAULT_fp_from_email', $default_from );
|
121 |
|
122 |
|
123 |
-
define('CP_CFEMAIL_DEFAULT_fp_destination_emails',
|
124 |
$wpdb->insert( $wpdb->prefix.$this->table_items, array( 'id' => 1,
|
125 |
'form_name' => 'Form 1',
|
126 |
|
112 |
$default_from = strtolower(get_the_author_meta('user_email', get_current_user_id()));
|
113 |
$domain = str_replace('www.','', strtolower($_SERVER["HTTP_HOST"]));
|
114 |
while (substr_count($domain,".") > 1)
|
115 |
+
$domain = substr($domain, strpos($domain, ".")+1);
|
116 |
$pos = strpos($default_from, $domain);
|
117 |
if (substr_count($domain,".") == 1 && $pos === false)
|
118 |
define('CP_CFEMAIL_DEFAULT_fp_from_email', 'admin@'.$domain );
|
120 |
define('CP_CFEMAIL_DEFAULT_fp_from_email', $default_from );
|
121 |
|
122 |
|
123 |
+
define('CP_CFEMAIL_DEFAULT_fp_destination_emails', get_the_author_meta('user_email', get_current_user_id()) );
|
124 |
$wpdb->insert( $wpdb->prefix.$this->table_items, array( 'id' => 1,
|
125 |
'form_name' => 'Form 1',
|
126 |
|
form-to-email.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
-
Version: 1.2.
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
+
Version: 1.2.82
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|