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

Version Description

  • Added new feature of Feature Request.
Download this release

Release Info

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

Code changes from version 1.9 to 1.10

assets/css/wp-mail-bank.css CHANGED
@@ -44,4 +44,46 @@
44
  {
45
  z-index: 9999;
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
44
  {
45
  z-index: 9999;
46
 
47
+ }
48
+ .custom-message {
49
+ position: relative;
50
+ display: inline-block;
51
+ margin: 20px 0 0 0;
52
+ padding: 0 0 0 35px;
53
+ -moz-box-shadow: 1px 1px 0 #e6e6e6;
54
+ -webkit-box-shadow: 1px 1px 0 #e6e6e6;
55
+ box-shadow: 1px 1px 0 #e6e6e6;
56
+ -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=135, Color='#e6e6e6')";
57
+ filter: progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=135, Color='#e6e6e6');
58
+ zoom: 1;
59
+ }
60
+
61
+ .custom-message:hover {
62
+ opacity: 0.7;
63
+ filter: alpha(opacity=70);
64
+ }
65
+
66
+ .custom-message span {
67
+ display: block;
68
+ /*background : url(../images/system-icon.png) no-repeat 98% center;*/
69
+ padding: 13px 0;
70
+ font: 12px/1.0em Arial;
71
+ }
72
+
73
+ .custom-message.inner {
74
+ margin: 0 0 20px;
75
+ }
76
+
77
+ .custom-message.red {
78
+ display: block;
79
+ background : #F8E9E9;
80
+ border: 1px solid #E4BBBC;
81
+ color: #b80000;
82
+ }
83
+
84
+ .custom-message.green {
85
+ display: block;
86
+ background: url(../images/icons/icon-succes.png) no-repeat 1px 8px #EBF9E2;
87
+ border: 1px solid #BEE4A5;
88
+ color: #6aa500;
89
  }
assets/images/icons/icon-succes.png ADDED
Binary file
lib/wp-include-menus.php CHANGED
@@ -16,6 +16,7 @@ else
16
  add_submenu_page("smtp_mail", "Send Test Email", __("Send Test Email", mail_bank), "read", "send_test_email","send_test_email");
17
  add_submenu_page("", "", "", "read", "send_test_email", "send_test_email");
18
  add_submenu_page("smtp_mail", "Plugin Updates", __("Plugin Updates",mail_bank), "read", "mail_plugin_updates", "mail_plugin_updates");
 
19
  add_submenu_page("smtp_mail", "Recommendations", __("Recommendations", mail_bank), "read", "recommended_plugins", "recommended_plugins" );
20
  add_submenu_page("smtp_mail", "Our Other Services", __("Our Other Services", mail_bank), "read", "other_services", "other_services" );
21
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
@@ -26,6 +27,7 @@ else
26
  add_submenu_page("smtp_mail", "Send Test Email", __("Send Test Email", mail_bank), "read", "send_test_email","send_test_email");
27
  add_submenu_page("", "", "", "read", "send_test_email", "send_test_email");
28
  add_submenu_page("smtp_mail", "Plugin Updates", __("Plugin Updates",mail_bank), "read", "mail_plugin_updates", "mail_plugin_updates");
 
29
  add_submenu_page("smtp_mail", "Recommendations", __("Recommendations", mail_bank), "read", "recommended_plugins", "recommended_plugins" );
30
  add_submenu_page("smtp_mail", "Our Other Services", __("Our Other Services", mail_bank), "read", "other_services", "other_services" );
31
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
@@ -36,6 +38,7 @@ else
36
  add_submenu_page("smtp_mail", "Send Test Email", __("Send Test Email", mail_bank), "read", "send_test_email","send_test_email");
37
  add_submenu_page("", "", "", "read", "send_test_email", "send_test_email");
38
  add_submenu_page("smtp_mail", "Plugin Updates", __("Plugin Updates",mail_bank), "read", "mail_plugin_updates", "mail_plugin_updates");
 
39
  add_submenu_page("smtp_mail", "Recommendations", __("Recommendations", mail_bank), "read", "recommended_plugins", "recommended_plugins" );
40
  add_submenu_page("smtp_mail", "Our Other Services", __("Our Other Services", mail_bank), "read", "other_services", "other_services" );
41
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
@@ -177,5 +180,31 @@ else
177
  }
178
  }
179
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
180
  }
181
  ?>
16
  add_submenu_page("smtp_mail", "Send Test Email", __("Send Test Email", mail_bank), "read", "send_test_email","send_test_email");
17
  add_submenu_page("", "", "", "read", "send_test_email", "send_test_email");
18
  add_submenu_page("smtp_mail", "Plugin Updates", __("Plugin Updates",mail_bank), "read", "mail_plugin_updates", "mail_plugin_updates");
19
+ add_submenu_page("smtp_mail", "Feature Requests", __("Feature Requests",mail_bank), "read", "mail_feature_requests", "mail_feature_requests");
20
  add_submenu_page("smtp_mail", "Recommendations", __("Recommendations", mail_bank), "read", "recommended_plugins", "recommended_plugins" );
21
  add_submenu_page("smtp_mail", "Our Other Services", __("Our Other Services", mail_bank), "read", "other_services", "other_services" );
22
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
27
  add_submenu_page("smtp_mail", "Send Test Email", __("Send Test Email", mail_bank), "read", "send_test_email","send_test_email");
28
  add_submenu_page("", "", "", "read", "send_test_email", "send_test_email");
29
  add_submenu_page("smtp_mail", "Plugin Updates", __("Plugin Updates",mail_bank), "read", "mail_plugin_updates", "mail_plugin_updates");
30
+ add_submenu_page("smtp_mail", "Feature Requests", __("Feature Requests",mail_bank), "read", "mail_feature_requests", "mail_feature_requests");
31
  add_submenu_page("smtp_mail", "Recommendations", __("Recommendations", mail_bank), "read", "recommended_plugins", "recommended_plugins" );
32
  add_submenu_page("smtp_mail", "Our Other Services", __("Our Other Services", mail_bank), "read", "other_services", "other_services" );
33
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
38
  add_submenu_page("smtp_mail", "Send Test Email", __("Send Test Email", mail_bank), "read", "send_test_email","send_test_email");
39
  add_submenu_page("", "", "", "read", "send_test_email", "send_test_email");
40
  add_submenu_page("smtp_mail", "Plugin Updates", __("Plugin Updates",mail_bank), "read", "mail_plugin_updates", "mail_plugin_updates");
41
+ add_submenu_page("smtp_mail", "Feature Requests", __("Feature Requests",mail_bank), "read", "mail_feature_requests", "mail_feature_requests");
42
  add_submenu_page("smtp_mail", "Recommendations", __("Recommendations", mail_bank), "read", "recommended_plugins", "recommended_plugins" );
43
  add_submenu_page("smtp_mail", "Our Other Services", __("Our Other Services", mail_bank), "read", "other_services", "other_services" );
44
  add_submenu_page("smtp_mail", "System Status", __("System Status", mail_bank), "read", "mail_system_status", "mail_system_status" );
180
  }
181
  }
182
  }
183
+
184
+ if(!function_exists( "mail_feature_requests" ))
185
+ {
186
+ function mail_feature_requests()
187
+ {
188
+ global $wpdb,$current_user,$user_role_permission,$wp_version;
189
+ if(is_super_admin())
190
+ {
191
+ $role = "administrator";
192
+ }
193
+ else
194
+ {
195
+ $role = $wpdb->prefix . "capabilities";
196
+ $current_user->role = array_keys($current_user->$role);
197
+ $role = $current_user->role[0];
198
+ }
199
+ if(file_exists(MAIL_BK_PLUGIN_DIR."/views/mail_header.php"))
200
+ {
201
+ include_once MAIL_BK_PLUGIN_DIR."/views/mail_header.php";
202
+ }
203
+ if (file_exists(MAIL_BK_PLUGIN_DIR ."/views/mail-feedback.php"))
204
+ {
205
+ include_once MAIL_BK_PLUGIN_DIR ."/views/mail-feedback.php";
206
+ }
207
+ }
208
+ }
209
  }
210
  ?>
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.1
6
- Stable tag: 1.9
7
 
8
  WP Mail Bank reconfigures the PHPMailer and make it more enhanced with advanced smtp settings options.
9
 
@@ -221,6 +221,10 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
221
  4. Debugging Output Console Log
222
  == Changelog ==
223
 
 
 
 
 
224
  = 1.9 =
225
 
226
  * Implemented New Feature - Automatic Mail Bank Plugin Update Enable/Disable.
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.1
6
+ Stable tag: 1.10
7
 
8
  WP Mail Bank reconfigures the PHPMailer and make it more enhanced with advanced smtp settings options.
9
 
221
  4. Debugging Output Console Log
222
  == Changelog ==
223
 
224
+ = 1.10 =
225
+
226
+ * Added new feature of Feature Request.
227
+
228
  = 1.9 =
229
 
230
  * Implemented New Feature - Automatic Mail Bank Plugin Update Enable/Disable.
views/mail-feedback.php ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ switch($role)
3
+ {
4
+ case "administrator":
5
+ $user_role_permission = "manage_options";
6
+ break;
7
+ case "editor":
8
+ $user_role_permission = "publish_pages";
9
+ break;
10
+ case "author":
11
+ $user_role_permission = "publish_posts";
12
+ break;
13
+ }
14
+
15
+ if (!current_user_can($user_role_permission))
16
+ {
17
+ return;
18
+ }
19
+ else
20
+ {
21
+ ?>
22
+ <div class="custom-message green" style="display: block;margin-top:30px;max-width:963px;">
23
+ <div style="padding: 4px 0;">
24
+ <p style="font:12px/1.0em Arial !important;font-weight:bold;">If you have any Feature Request which you would like to have in your plugin, please fill in the below form. We assure you that soon this will be taken care off!</p>
25
+ </div>
26
+ </div>
27
+ <form id="frm_feedback" class="layout-form" style = "max-width:1000px;">
28
+ <div class="fluid-layout">
29
+ <div class="layout-span12">
30
+ <div class="widget-layout">
31
+ <div class="widget-layout-title">
32
+ <h4>
33
+ <?php _e("Feature Requests", mail_bank); ?>
34
+ </h4>
35
+ </div>
36
+ <div class="widget-layout-body">
37
+ <a class="btn btn-inverse" href="admin.php?page=smtp_mail"><?php _e("Back to Settings", mail_bank); ?></a>
38
+ <div class="separator-doubled" style="margin-top:20px;"></div>
39
+ <div class="fluid-layout">
40
+ <div class="layout-span12 responsive">
41
+ <div class="widget-layout">
42
+ <div class="widget-layout-title">
43
+ <h4><?php _e("Feature Requests / Suggestions", mail_bank); ?></h4>
44
+ </div>
45
+ <div class="widget-layout-body">
46
+ <div class="layout-control-group">
47
+ <label class="layout-control-label"><?php _e("Name", mail_bank); ?> : <span class="error">*</span></label>
48
+ <div class="layout-controls">
49
+ <input type="text" class="layout-span12" name="ux_name" id="ux_name" placeholder="<?php _e("Enter your Name", mail_bank); ?>"/>
50
+ </div>
51
+ </div>
52
+ <div class="layout-control-group">
53
+ <label class="layout-control-label"><?php _e("Email Id", mail_bank); ?> : <span class="error">*</span></label>
54
+ <div class="layout-controls">
55
+ <input type="text" class="layout-span12" name="ux_email" id="ux_email" placeholder="<?php _e("Enter your Email Address", mail_bank); ?>"/>
56
+ </div>
57
+ </div>
58
+ <div class="layout-control-group">
59
+ <label class="layout-control-label"><?php _e("Feature Requests / Suggestions", mail_bank); ?> : <span class="error">*</span></label>
60
+ <div class="layout-controls">
61
+ <textarea rows="5" class="layout-span12" name="ux_suggestion" id="ux_suggestion" placeholder="<?php _e("Enter your Feature Requests / Suggestions", mail_bank); ?>"></textarea>
62
+ </div>
63
+ </div>
64
+ <div class="layout-control-group">
65
+ <div class="layout-controls">
66
+ <button type="submit" class="btn btn-danger"><?php _e("Send", mail_bank); ?></button>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </div>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </form>
78
+ <script type="text/javascript">
79
+
80
+ var url = "http://tech-banker.com/wp-admin/admin-ajax.php";
81
+ var suggestion_array = [];
82
+ jQuery("#frm_feedback").validate
83
+ ({
84
+ rules:
85
+ {
86
+ ux_name :
87
+ {
88
+ required: true
89
+ },
90
+ ux_email:
91
+ {
92
+ required: true,
93
+ email: true
94
+ },
95
+ ux_suggestion:
96
+ {
97
+ required: true
98
+ }
99
+ },
100
+ submitHandler: function()
101
+ {
102
+ var overlay_opacity = jQuery("<div class=\"opacity_overlay\"></div>");
103
+ jQuery("body").append(overlay_opacity);
104
+ var overlay = jQuery("<div class=\"loader_opacity\"><div class=\"processing_overlay\"></div></div>");
105
+ jQuery("body").append(overlay);
106
+ suggestion_array.push(jQuery("#ux_name").val());
107
+ suggestion_array.push(jQuery("#ux_email").val());
108
+ suggestion_array.push(jQuery("#ux_suggestion").val());
109
+ jQuery.post(url,
110
+ {
111
+ data : JSON.stringify(suggestion_array),
112
+ param: "mail_feedbacks",
113
+ action: "feedbacks"
114
+ },
115
+ function (data)
116
+ {
117
+ setTimeout(function () {
118
+ jQuery(".loader_opacity").remove();
119
+ jQuery(".opacity_overlay").remove();
120
+ window.location.href = "admin.php?page=mail_feature_requests";
121
+ }, 2000);
122
+ });
123
+ }
124
+ });
125
+ </script>
126
+ <?php
127
+ }
128
+ ?>
views/mail_header.php CHANGED
@@ -26,6 +26,19 @@ else
26
  <a class="nav-tab" id="recommended_plugins" href="admin.php?page=recommended_plugins"><?php _e("Recommendations", mail_bank);?></a>
27
  <a class="nav-tab" id="other_services" href="admin.php?page=other_services"><?php _e("Our Other Services", mail_bank);?></a>
28
  </h2>
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  <script>
30
  jQuery(document).ready(function()
31
  {
26
  <a class="nav-tab" id="recommended_plugins" href="admin.php?page=recommended_plugins"><?php _e("Recommendations", mail_bank);?></a>
27
  <a class="nav-tab" id="other_services" href="admin.php?page=other_services"><?php _e("Our Other Services", mail_bank);?></a>
28
  </h2>
29
+ <?php
30
+ if($_REQUEST["page"] != "mail_feature_requests")
31
+ {
32
+ ?>
33
+ <div class="custom-message green" style="display: block;margin-top:30px;max-width:965px;">
34
+ <div style="padding: 4px 0;">
35
+ <p style="font:12px/1.0em Arial !important;font-weight:bold;">If you don't find any features you were looking for in this Plugin,
36
+ please write us <a target="_self" href="admin.php?page=mail_feature_requests">here</a> and we shall try to implement this for you as soon as possible! We are looking forward for your valuable <a target="_self" href="admin.php?page=mail_feature_requests">Feedback</a></p>
37
+ </div>
38
+ </div>
39
+ <?php
40
+ }
41
+ ?>
42
  <script>
43
  jQuery(document).ready(function()
44
  {
views/mail_settings.php CHANGED
@@ -24,7 +24,6 @@ else
24
  "SELECT * FROM ".wp_mail_bank()
25
  );
26
  $admin_email = get_option( 'admin_email' );
27
- echo stripcslashes(htmlspecialchars_decode($email_data->from_name));
28
 
29
  ?>
30
  <form id="ux_frm_email" class="layout-form" style="max-width:1000px;">
24
  "SELECT * FROM ".wp_mail_bank()
25
  );
26
  $admin_email = get_option( 'admin_email' );
 
27
 
28
  ?>
29
  <form id="ux_frm_email" class="layout-form" style="max-width:1000px;">
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.9
8
  Author URI: http://tech-banker.com
9
  */
10
 
@@ -177,6 +177,12 @@ function add_mail_icon($meta = TRUE)
177
  "href" => site_url() . "/wp-admin/admin.php?page=mail_plugin_updates",
178
  "title" => __("Plugin Updates", mail_bank))
179
  );
 
 
 
 
 
 
180
  $wp_admin_bar->add_menu(array(
181
  "parent" => "mail_bank",
182
  "id" => "recommended",
@@ -222,6 +228,12 @@ function add_mail_icon($meta = TRUE)
222
  "href" => site_url() . "/wp-admin/admin.php?page=mail_plugin_updates",
223
  "title" => __("Plugin Updates", mail_bank))
224
  );
 
 
 
 
 
 
225
  $wp_admin_bar->add_menu(array(
226
  "parent" => "mail_bank",
227
  "id" => "recommended",
@@ -267,6 +279,12 @@ function add_mail_icon($meta = TRUE)
267
  "href" => site_url() . "/wp-admin/admin.php?page=mail_plugin_updates",
268
  "title" => __("Plugin Updates", mail_bank))
269
  );
 
 
 
 
 
 
270
  $wp_admin_bar->add_menu(array(
271
  "parent" => "mail_bank",
272
  "id" => "recommended",
@@ -386,7 +404,6 @@ if(!function_exists( "plugin_uninstall_hook_for_mail_bank" ))
386
  }
387
  }
388
 
389
-
390
  add_action("network_admin_menu", "create_global_menus_for_mail_bank" );
391
  add_action("admin_bar_menu", "add_mail_icon",100);
392
  add_action('phpmailer_init','wp_mail_bank_configure');
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.10
8
  Author URI: http://tech-banker.com
9
  */
10
 
177
  "href" => site_url() . "/wp-admin/admin.php?page=mail_plugin_updates",
178
  "title" => __("Plugin Updates", mail_bank))
179
  );
180
+ $wp_admin_bar->add_menu(array(
181
+ "parent" => "mail_bank",
182
+ "id" => "mail_feedback_link",
183
+ "href" => site_url() . "/wp-admin/admin.php?page=mail_feature_requests",
184
+ "title" => __("Feature Requests", mail_bank))
185
+ );
186
  $wp_admin_bar->add_menu(array(
187
  "parent" => "mail_bank",
188
  "id" => "recommended",
228
  "href" => site_url() . "/wp-admin/admin.php?page=mail_plugin_updates",
229
  "title" => __("Plugin Updates", mail_bank))
230
  );
231
+ $wp_admin_bar->add_menu(array(
232
+ "parent" => "mail_bank",
233
+ "id" => "mail_feedback_link",
234
+ "href" => site_url() . "/wp-admin/admin.php?page=mail_feature_requests",
235
+ "title" => __("Feature Requests", mail_bank))
236
+ );
237
  $wp_admin_bar->add_menu(array(
238
  "parent" => "mail_bank",
239
  "id" => "recommended",
279
  "href" => site_url() . "/wp-admin/admin.php?page=mail_plugin_updates",
280
  "title" => __("Plugin Updates", mail_bank))
281
  );
282
+ $wp_admin_bar->add_menu(array(
283
+ "parent" => "mail_bank",
284
+ "id" => "mail_feedback_link",
285
+ "href" => site_url() . "/wp-admin/admin.php?page=mail_feature_requests",
286
+ "title" => __("Feature Requests", mail_bank))
287
+ );
288
  $wp_admin_bar->add_menu(array(
289
  "parent" => "mail_bank",
290
  "id" => "recommended",
404
  }
405
  }
406
 
 
407
  add_action("network_admin_menu", "create_global_menus_for_mail_bank" );
408
  add_action("admin_bar_menu", "add_mail_icon",100);
409
  add_action('phpmailer_init','wp_mail_bank_configure');