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

Version Description

  • Added Update Message for New Version
Download this release

Release Info

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

Code changes from version 1.3 to 1.4

assets/css/framework.css CHANGED
@@ -1888,4 +1888,16 @@ div.loader_opacity
1888
.service-div-settings .desc p
1889
{
1890
line-height: 2em !important;
1891
}
1888
.service-div-settings .desc p
1889
{
1890
line-height: 2em !important;
1891
+ }
1892
+ .framework_plugin_message
1893
+ {
1894
+ font-weight: 400;
1895
+ background: #d54d21;
1896
+ padding: 1em;
1897
+ margin: 10px 0;
1898
+ margin: 0px !important;
1899
+ }
1900
+ .framework_plugin_message > p
1901
+ {
1902
+ color: #fff;
1903
}
lib/wp-install-script.php CHANGED
@@ -19,7 +19,7 @@ if(!function_exists("create_table_mail_detail"))
19
smtp_username VARCHAR(100),
20
smtp_password VARCHAR(100),
21
PRIMARY KEY (id)
22
- ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE utf8_general_ci";
23
dbDelta($sql);
24
}
25
}
19
smtp_username VARCHAR(100),
20
smtp_password VARCHAR(100),
21
PRIMARY KEY (id)
22
+ ) DEFAULT CHARSET=utf8 COLLATE utf8_general_ci";
23
dbDelta($sql);
24
}
25
}
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.0.1
6
- Stable tag: 1.3
7
8
WP Mail Bank reconfigures the PHPMailer and make it more enhanced with advanced smtp settings options.
9
@@ -15,10 +15,7 @@ This plugin reconfigures the wp_mail() function nd make it more enhanced to use
15
16
The Plugin has options to choose between your custom smtp server or the inbuilt phpmailer.
17
18
- ###IMPORTANT: If you think you found a bug in WP Mail Bank or have any problem or question concerning WP Mail Bank, do not hesitate to contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
19
-
20
- ***August 23, 2014: We're happy to announce that WP Mail Bank reached 2400+ plugin downloads in only 3 weeks. We frequently receive positive feedback from people using our WP Mail Bank Plugin for WordPress. Thanks so much for your support!***
21
-
22
###Key Features :
23
24
* Specify the From Name that emails should be sent from.
@@ -223,12 +220,16 @@ If any problem occurs, please contact us at [support@tech-banker.com](mailto:sup
223
4. Debugging Output Console Log
224
== Changelog ==
225
226
= 1.3 =
227
228
* Multisite Compatibility Added.
229
* Added Compatibility with 4.0.1 WordPress
230
- * Added Recommendations
231
- * Added Other Services
232
233
= 1.2 =
234
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.0.1
6
+ Stable tag: 1.4
7
8
WP Mail Bank reconfigures the PHPMailer and make it more enhanced with advanced smtp settings options.
9
15
16
The Plugin has options to choose between your custom smtp server or the inbuilt phpmailer.
17
18
+ ###IMPORTANT: If you think you found a bug in WP Mail Bank or have any problem or question concerning WP Mail Bank, do not hesitate to contact us at [support@tech-banker.com](mailto:support@tech-banker.com).
19
###Key Features :
20
21
* Specify the From Name that emails should be sent from.
220
4. Debugging Output Console Log
221
== Changelog ==
222
223
+ = 1.4 =
224
+
225
+ * Added Update Message for New Version
226
+
227
= 1.3 =
228
229
* Multisite Compatibility Added.
230
* Added Compatibility with 4.0.1 WordPress
231
+ * Recommended Section Added
232
+ * Other Services Section Added
233
234
= 1.2 =
235
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.3
8
Author URI: http://tech-banker.com
9
*/
10
@@ -15,6 +15,7 @@ if (!defined("MAIL_BK_PLUGIN_DIR")) define("MAIL_BK_PLUGIN_DIR", plugin_dir_pat
15
if (!defined("MAIL_BK_PLUGIN_DIRNAME")) define("MAIL_BK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
16
if (!defined("mail_bank")) define("mail_bank", "mail-banker");
17
if (!defined("tech_bank")) define("tech_bank", "tech-banker");
18
19
global $phpmailer;
20
@@ -297,6 +298,30 @@ if(!function_exists("plugin_install_script_for_mail_bank"))
297
}
298
}
299
300
add_action("network_admin_menu", "create_global_menus_for_mail_bank" );
301
add_action("admin_bar_menu", "add_mail_icon",100);
302
add_action('phpmailer_init','wp_mail_bank_configure');
@@ -305,4 +330,5 @@ add_action("admin_menu","create_global_menus_for_mail_bank");
305
add_action("admin_init","backend_plugin_js_scripts_mail_bank");
306
add_action("admin_init","backend_plugin_css_scripts_mail_bank");
307
register_activation_hook(__FILE__, "plugin_install_script_for_mail_bank");
308
?>
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.4
8
Author URI: http://tech-banker.com
9
*/
10
15
if (!defined("MAIL_BK_PLUGIN_DIRNAME")) define("MAIL_BK_PLUGIN_DIRNAME", plugin_basename(dirname(__FILE__)));
16
if (!defined("mail_bank")) define("mail_bank", "mail-banker");
17
if (!defined("tech_bank")) define("tech_bank", "tech-banker");
18
+ if (!defined("MAIL_FILE")) define("MAIL_FILE","wp-mail-bank/wp-mail-bank.php");
19
20
global $phpmailer;
21
298
}
299
}
300
301
+ function mail_bank_plugin_update_message($args)
302
+ {
303
+ $response = wp_remote_get( 'http://plugins.svn.wordpress.org/wp-mail-bank/trunk/readme.txt' );
304
+ if ( ! is_wp_error( $response ) && ! empty( $response['body'] ) )
305
+ {
306
+ // Output Upgrade Notice
307
+ $matches = null;
308
+ $regexp = '~==\s*Changelog\s*==\s*=\s*[0-9.]+\s*=(.*)(=\s*' . preg_quote($args['Version']) . '\s*=|$)~Uis';
309
+ $upgrade_notice = '';
310
+ if ( preg_match( $regexp, $response['body'], $matches ) ) {
311
+ $changelog = (array) preg_split('~[\r\n]+~', trim($matches[1]));
312
+ $upgrade_notice .= '<div class="framework_plugin_message">';
313
+ foreach ( $changelog as $index => $line ) {
314
+ $upgrade_notice .= "<p>".$line."</p>";
315
+ }
316
+ $upgrade_notice .= '</div> ';
317
+ echo $upgrade_notice;
318
+ }
319
+ }
320
+ }
321
+
322
+
323
+
324
+
325
add_action("network_admin_menu", "create_global_menus_for_mail_bank" );
326
add_action("admin_bar_menu", "add_mail_icon",100);
327
add_action('phpmailer_init','wp_mail_bank_configure');
330
add_action("admin_init","backend_plugin_js_scripts_mail_bank");
331
add_action("admin_init","backend_plugin_css_scripts_mail_bank");
332
register_activation_hook(__FILE__, "plugin_install_script_for_mail_bank");
333
+ add_action("in_plugin_update_message-".MAIL_FILE,"mail_bank_plugin_update_message" );
334
?>