WP Mail Bank: WordPress SMTP Plugin & Email Logs - Version 1.43

Version Description

Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 WP Mail Bank: WordPress SMTP Plugin & Email Logs
Version 1.43
Comparing to
See all releases

Code changes from version 1.42 to 1.43

lib/add_mail_class_file.php CHANGED
@@ -41,7 +41,7 @@ else
41
  {
42
  $insert = new save_data();
43
  $email_setup = array();
44
- $email_setup["from_name"] = htmlspecialchars_decode(esc_attr($_REQUEST["from_name"]));
45
  $email_setup["from_email"] = esc_attr($_REQUEST["ux_email_from_email"]);
46
  $email_setup["mailer_type"] = intval($_REQUEST["ux_rdl_ends"]);
47
  $email_setup["return_path"] = isset($_REQUEST["ux_chk_return_path"]) ? intval($_REQUEST["ux_chk_return_path"]) : 0;
@@ -56,7 +56,6 @@ else
56
  $email_setup["smtp_password"] = htmlspecialchars_decode(esc_attr($_REQUEST["password"]));
57
  $ux_chk_email_from_name = isset($_REQUEST["ux_chk_email_from_name"]) ? $_REQUEST["ux_chk_email_from_name"] :"0";
58
  $ux_chk_from_email = isset($_REQUEST["ux_chk_from_email"]) ? $_REQUEST["ux_chk_from_email"] :"0";
59
-
60
  $count_direction = $wpdb->get_var
61
  (
62
  "SELECT count(id) FROM " .wp_mail_bank()
41
  {
42
  $insert = new save_data();
43
  $email_setup = array();
44
+ $email_setup["from_name"] = esc_html(html_entity_decode(base64_decode($_REQUEST["from_name"])));
45
  $email_setup["from_email"] = esc_attr($_REQUEST["ux_email_from_email"]);
46
  $email_setup["mailer_type"] = intval($_REQUEST["ux_rdl_ends"]);
47
  $email_setup["return_path"] = isset($_REQUEST["ux_chk_return_path"]) ? intval($_REQUEST["ux_chk_return_path"]) : 0;
56
  $email_setup["smtp_password"] = htmlspecialchars_decode(esc_attr($_REQUEST["password"]));
57
  $ux_chk_email_from_name = isset($_REQUEST["ux_chk_email_from_name"]) ? $_REQUEST["ux_chk_email_from_name"] :"0";
58
  $ux_chk_from_email = isset($_REQUEST["ux_chk_from_email"]) ? $_REQUEST["ux_chk_from_email"] :"0";
 
59
  $count_direction = $wpdb->get_var
60
  (
61
  "SELECT count(id) FROM " .wp_mail_bank()
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: admin, ajax, email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, plugin, Post, posts, privacy, security, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer
4
  Requires at least: 2.7
5
  Tested up to: 4.5.2
6
- Stable tag: 1.42
7
 
8
  WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
9
 
@@ -224,8 +224,13 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
224
 
225
  = 1.42 =
226
 
 
 
 
 
227
  * Added New Checkbox to confirm whether to Override "From Name" Property while sending Mails.
228
  * Added New Checkbox to confirm whether to Override "From Email" Property while sending Mails.
 
229
  = 1.41 =
230
 
231
  * Few Urgent Bugs Fixed
3
  Tags: admin, ajax, email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, plugin, Post, posts, privacy, security, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer
4
  Requires at least: 2.7
5
  Tested up to: 4.5.2
6
+ Stable tag: 1.43
7
 
8
  WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
9
 
224
 
225
  = 1.42 =
226
 
227
+ * From Name Special Characters Bug Fixed
228
+
229
+ = 1.42 =
230
+
231
  * Added New Checkbox to confirm whether to Override "From Name" Property while sending Mails.
232
  * Added New Checkbox to confirm whether to Override "From Email" Property while sending Mails.
233
+
234
  = 1.41 =
235
 
236
  * Few Urgent Bugs Fixed
views/mail_settings.php CHANGED
@@ -27,7 +27,7 @@ else
27
  $ux_chk_email_from_name = get_option("show_from_name_in_email");
28
  if($ux_chk_email_from_name == "1")
29
  {
30
- $checked = "checked='checked'";
31
  }
32
  else if($ux_chk_email_from_name == "")
33
  {
@@ -36,7 +36,7 @@ else if($ux_chk_email_from_name == "")
36
  $ux_chk_from_email = get_option("show_from_email_in_email");
37
  if($ux_chk_from_email == "1")
38
  {
39
- $checked_from_email = "checked='checked'";
40
  }
41
  else if($ux_chk_from_email == "")
42
  {
@@ -48,8 +48,8 @@ else if($ux_chk_from_email == "")
48
  <div class="message-notification"></div>
49
  <div class="message-notification ui-corner-all growl-success" >
50
  <div onclick="message_close();" id="close-message" class="message-close">x</div>
51
- <div class="message-header"><?php _e("Success!", mail_bank); ?></div>
52
- <div class="message-message"><?php _e("Settings has been successfully saved.", mail_bank); ?></div>
53
  </div>
54
  </div>
55
  <div class="fluid-layout">
@@ -62,7 +62,7 @@ else if($ux_chk_from_email == "")
62
  <div class="layout-control-group">
63
  <label class="layout-control-label"><?php _e("From Name", mail_bank); ?> : <span class="error">*</span></label>
64
  <div class="layout-controls">
65
- <input type="text" name="ux_email_from_name" class="layout-span12" id="ux_email_from_name" placeholder="Please enter your From Name" value="<?php echo isset($email_data->from_name) ? stripcslashes(htmlspecialchars_decode($email_data->from_name)) : "WordPress" ;?>"/><br>
66
  <p class="wpib-desc-italic"><?php _e("You can specify the name that emails should be sent from.", mail_bank); ?></p>
67
  </div>
68
  </div>
@@ -93,14 +93,14 @@ else if($ux_chk_from_email == "")
93
  if($rdl_value == 1)
94
  {
95
  ?>
96
- <input type="radio" onclick="backup_rdl();" id="ux_rdl_off" name="ux_rdl_ends" value="0" /><?php _e("Send all emails via SMTP", mail_bank); ?>
97
  <input type="radio" onclick="backup_rdl();" checked="checked" id="ux_rdl_on" style="margin-left: 10px;" name="ux_rdl_ends" value="1"/><?php _e("Use the PHP mail() function to send emails.", mail_bank); ?>
98
  <?php
99
  }
100
  else {
101
  ?>
102
  <input type="radio" onclick="backup_rdl();" checked="checked" id="ux_rdl_off" name="ux_rdl_ends" value="0" /><?php _e("Send all emails via SMTP", mail_bank); ?>
103
- <input type="radio" onclick="backup_rdl();" id="ux_rdl_on" style="margin-left: 10px;" name="ux_rdl_ends" value="1"/><?php _e("Use the PHP mail() function to send emails.", mail_bank); ?>
104
  <?php
105
  }
106
  ?>
@@ -155,7 +155,7 @@ else if($ux_chk_from_email == "")
155
  <div class="layout-control-group">
156
  <label class="layout-control-label"><?php _e("SMTP Port", mail_bank); ?> : <span class="error">*</span></label>
157
  <div class="layout-controls">
158
- <input type="text" name="ux_smtp_port" class="layout-span12" id="ux_smtp_port" placeholder="Please enter your SMTP Port" value="<?php echo isset($email_data->smtp_port) ? $email_data->smtp_port : "25" ;?>"/><br>
159
  <p class="wpib-desc-italic"><?php _e("You can specify the smtp port for sending your emails.", mail_bank); ?></p>
160
  </div>
161
  </div>
@@ -175,7 +175,7 @@ else if($ux_chk_from_email == "")
175
  else if($rdl_data == 1)
176
  {
177
  ?>
178
- <input type="radio" id="ux_rdl_encrption_no" name="ux_rdl_encrption" value="0" /><?php _e("No Encryption", mail_bank); ?>
179
  <input type="radio" checked="checked" id="ux_rdl_encrption_ssl" style="margin-left: 10px;" name="ux_rdl_encrption" value="1"/><?php _e("Use SSL Encryption", mail_bank); ?>
180
  <input type="radio" id="ux_rdl_encrption_tls" name="ux_rdl_encrption" style="margin-left: 10px;" value="2"/><?php _e("Use TLS Encryption", mail_bank); ?>
181
  <?php
@@ -183,8 +183,8 @@ else if($ux_chk_from_email == "")
183
  else if($rdl_data == 2)
184
  {
185
  ?>
186
- <input type="radio" id="ux_rdl_encrption_no" name="ux_rdl_encrption" value="0" /><?php _e("No Encryption", mail_bank); ?>
187
- <input type="radio" id="ux_rdl_encrption_ssl" style="margin-left: 10px;" name="ux_rdl_encrption" value="1"/><?php _e("Use SSL Encryption", mail_bank); ?>
188
  <input type="radio" checked="checked" id="ux_rdl_encrption_tls" style="margin-left: 10px;" name="ux_rdl_encrption" value="2"/><?php _e("Use TLS Encryption", mail_bank); ?>
189
  <?php
190
  }
@@ -220,7 +220,7 @@ else if($ux_chk_from_email == "")
220
  <div class="layout-control-group">
221
  <label class="layout-control-label"><?php _e("SMTP Username", mail_bank); ?> : <span class="error">*</span></label>
222
  <div class="layout-controls">
223
- <input type="text" id="ux_txt_username" name="ux_txt_username" placeholder="Please enter Username" class="layout-span12" value="<?php echo isset($email_data->smtp_username) ? stripslashes($email_data->smtp_username) : "" ;?>"/>
224
  </div>
225
  </div>
226
  </div>
@@ -228,7 +228,7 @@ else if($ux_chk_from_email == "")
228
  <div class="layout-control-group">
229
  <label class="layout-control-label"><?php _e("SMTP Password", mail_bank); ?> : <span class="error">*</span></label>
230
  <div class="layout-controls">
231
- <input type="password" id="ux_txt_password" placeholder="Please enter Password" name="ux_txt_password" style="margin-left: -26px;" class="layout-span12" value="<?php echo isset($email_data->smtp_password) ? stripcslashes(htmlspecialchars_decode($email_data->smtp_password)) : "" ;?>">
232
  </div>
233
  </div>
234
  </div>
@@ -276,7 +276,37 @@ jQuery(document).ready(function()
276
  smtp_username();
277
 
278
  });
279
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  jQuery("#ux_frm_email").validate
281
  ({
282
  rules:
@@ -352,9 +382,10 @@ jQuery("#ux_frm_email").validate
352
  jQuery("body").append(overlay);
353
 
354
  var password= encodeURIComponent(jQuery("#ux_txt_password").val());
355
- var from_name= encodeURIComponent(jQuery("#ux_email_from_name").val());
 
356
  jQuery("#form_success_message").css("display","block");
357
- jQuery.post(ajaxurl, jQuery(form).serialize() +"&password="+password+"&from_name="+from_name+"&param=add_mail_detail&action=add_mail_library", function(data)
358
  {
359
  setTimeout(function () {
360
  jQuery("#message").css("display", "block");
27
  $ux_chk_email_from_name = get_option("show_from_name_in_email");
28
  if($ux_chk_email_from_name == "1")
29
  {
30
+ $checked = "checked='checked'";
31
  }
32
  else if($ux_chk_email_from_name == "")
33
  {
36
  $ux_chk_from_email = get_option("show_from_email_in_email");
37
  if($ux_chk_from_email == "1")
38
  {
39
+ $checked_from_email = "checked='checked'";
40
  }
41
  else if($ux_chk_from_email == "")
42
  {
48
  <div class="message-notification"></div>
49
  <div class="message-notification ui-corner-all growl-success" >
50
  <div onclick="message_close();" id="close-message" class="message-close">x</div>
51
+ <div class="message-header"><?php _e("Success!", mail_bank); ?></div>
52
+ <div class="message-message"><?php _e("Settings has been successfully saved.", mail_bank); ?></div>
53
  </div>
54
  </div>
55
  <div class="fluid-layout">
62
  <div class="layout-control-group">
63
  <label class="layout-control-label"><?php _e("From Name", mail_bank); ?> : <span class="error">*</span></label>
64
  <div class="layout-controls">
65
+ <input type="text" name="ux_email_from_name" class="layout-span12" id="ux_email_from_name" placeholder="Please enter your From Name" value="<?php echo isset($email_data->from_name) ? esc_html($email_data->from_name) : "WordPress" ;?>"/><br>
66
  <p class="wpib-desc-italic"><?php _e("You can specify the name that emails should be sent from.", mail_bank); ?></p>
67
  </div>
68
  </div>
93
  if($rdl_value == 1)
94
  {
95
  ?>
96
+ <input type="radio" onclick="backup_rdl();" id="ux_rdl_off" name="ux_rdl_ends" value="0" /><?php _e("Send all emails via SMTP", mail_bank); ?>
97
  <input type="radio" onclick="backup_rdl();" checked="checked" id="ux_rdl_on" style="margin-left: 10px;" name="ux_rdl_ends" value="1"/><?php _e("Use the PHP mail() function to send emails.", mail_bank); ?>
98
  <?php
99
  }
100
  else {
101
  ?>
102
  <input type="radio" onclick="backup_rdl();" checked="checked" id="ux_rdl_off" name="ux_rdl_ends" value="0" /><?php _e("Send all emails via SMTP", mail_bank); ?>
103
+ <input type="radio" onclick="backup_rdl();" id="ux_rdl_on" style="margin-left: 10px;" name="ux_rdl_ends" value="1"/><?php _e("Use the PHP mail() function to send emails.", mail_bank); ?>
104
  <?php
105
  }
106
  ?>
155
  <div class="layout-control-group">
156
  <label class="layout-control-label"><?php _e("SMTP Port", mail_bank); ?> : <span class="error">*</span></label>
157
  <div class="layout-controls">
158
+ <input type="text" name="ux_smtp_port" class="layout-span12" id="ux_smtp_port" placeholder="Please enter your SMTP Port" value="<?php echo isset($email_data->smtp_port) ? $email_data->smtp_port : "25" ;?>"/><br>
159
  <p class="wpib-desc-italic"><?php _e("You can specify the smtp port for sending your emails.", mail_bank); ?></p>
160
  </div>
161
  </div>
175
  else if($rdl_data == 1)
176
  {
177
  ?>
178
+ <input type="radio" id="ux_rdl_encrption_no" name="ux_rdl_encrption" value="0" /><?php _e("No Encryption", mail_bank); ?>
179
  <input type="radio" checked="checked" id="ux_rdl_encrption_ssl" style="margin-left: 10px;" name="ux_rdl_encrption" value="1"/><?php _e("Use SSL Encryption", mail_bank); ?>
180
  <input type="radio" id="ux_rdl_encrption_tls" name="ux_rdl_encrption" style="margin-left: 10px;" value="2"/><?php _e("Use TLS Encryption", mail_bank); ?>
181
  <?php
183
  else if($rdl_data == 2)
184
  {
185
  ?>
186
+ <input type="radio" id="ux_rdl_encrption_no" name="ux_rdl_encrption" value="0" /><?php _e("No Encryption", mail_bank); ?>
187
+ <input type="radio" id="ux_rdl_encrption_ssl" style="margin-left: 10px;" name="ux_rdl_encrption" value="1"/><?php _e("Use SSL Encryption", mail_bank); ?>
188
  <input type="radio" checked="checked" id="ux_rdl_encrption_tls" style="margin-left: 10px;" name="ux_rdl_encrption" value="2"/><?php _e("Use TLS Encryption", mail_bank); ?>
189
  <?php
190
  }
220
  <div class="layout-control-group">
221
  <label class="layout-control-label"><?php _e("SMTP Username", mail_bank); ?> : <span class="error">*</span></label>
222
  <div class="layout-controls">
223
+ <input type="text" id="ux_txt_username" name="ux_txt_username" placeholder="Please enter Username" class="layout-span12" value="<?php echo isset($email_data->smtp_username) ? stripslashes($email_data->smtp_username) : "" ;?>"/>
224
  </div>
225
  </div>
226
  </div>
228
  <div class="layout-control-group">
229
  <label class="layout-control-label"><?php _e("SMTP Password", mail_bank); ?> : <span class="error">*</span></label>
230
  <div class="layout-controls">
231
+ <input type="password" id="ux_txt_password" placeholder="Please enter Password" name="ux_txt_password" style="margin-left: -26px;" class="layout-span12" value="<?php echo isset($email_data->smtp_password) ? stripcslashes(htmlspecialchars_decode($email_data->smtp_password)) : "" ;?>">
232
  </div>
233
  </div>
234
  </div>
276
  smtp_username();
277
 
278
  });
279
+ if(typeof(base64_encode) != "function")
280
+ {
281
+ function base64_encode(data)
282
+ {
283
+ var b64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
284
+ var o1, o2, o3, h1, h2, h3, h4, bits, i = 0,
285
+ ac = 0,
286
+ enc = '',
287
+ tmp_arr = [];
288
+ if (!data)
289
+ {
290
+ return data;
291
+ }
292
+ do
293
+ {
294
+ o1 = data.charCodeAt(i++);
295
+ o2 = data.charCodeAt(i++);
296
+ o3 = data.charCodeAt(i++);
297
+ bits = o1 << 16 | o2 << 8 | o3;
298
+ h1 = bits >> 18 & 0x3f;
299
+ h2 = bits >> 12 & 0x3f;
300
+ h3 = bits >> 6 & 0x3f;
301
+ h4 = bits & 0x3f;
302
+ tmp_arr[ac++] = b64.charAt(h1) + b64.charAt(h2) + b64.charAt(h3) + b64.charAt(h4);
303
+ }
304
+ while (i < data.length);
305
+ enc = tmp_arr.join('');
306
+ var r = data.length % 3;
307
+ return (r ? enc.slice(0, r - 3) : enc) + '==='.slice(r || 3);
308
+ }
309
+ }
310
  jQuery("#ux_frm_email").validate
311
  ({
312
  rules:
382
  jQuery("body").append(overlay);
383
 
384
  var password= encodeURIComponent(jQuery("#ux_txt_password").val());
385
+ var from_name= jQuery("#ux_email_from_name").val();
386
+
387
  jQuery("#form_success_message").css("display","block");
388
+ jQuery.post(ajaxurl, jQuery(form).serialize() +"&password="+password+"&from_name="+base64_encode(from_name)+"&param=add_mail_detail&action=add_mail_library", function(data)
389
  {
390
  setTimeout(function () {
391
  jQuery("#message").css("display", "block");
wp-mail-bank.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Wp Mail Bank
4
  Plugin URI: http://tech-banker.com
5
  Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
- Version: 1.42
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
4
  Plugin URI: http://tech-banker.com
5
  Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
+ Version: 1.43
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */