Version Description
- Minor bugfix, remove use of esc_html() to improve backwards compatibility.
- Removed second options page menu props ovidiu.
Download this release
Release Info
Developer | chmac |
Plugin | WP Mail SMTP by WPForms |
Version | 0.8.4 |
Comparing to | |
See all releases |
Code changes from version 0.8.3 to 0.8.4
- readme.txt +9 -1
- wp_mail_smtp.php +8 -13
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.callum-macdonald.com/code/donate/
|
|
4 |
Tags: mail, smtp, wp_mail, mailer, phpmailer
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.9.2
|
7 |
-
Stable tag: 0.8.
|
8 |
|
9 |
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
|
10 |
|
@@ -61,8 +61,13 @@ By all means please contact me to discuss features or options you'd like to see
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
64 |
= 0.8.3 =
|
65 |
* Bugfix, return WPMS_MAIL_FROM_NAME, props nacin.
|
|
|
66 |
|
67 |
= 0.8.2 =
|
68 |
* Bugfix, call phpmailer_init_smtp() correctly, props Sinklar.
|
@@ -114,6 +119,9 @@ By all means please contact me to discuss features or options you'd like to see
|
|
114 |
|
115 |
== Upgrade Notice ==
|
116 |
|
|
|
|
|
|
|
117 |
= 0.8.3 =
|
118 |
Minor bugfix for users using constants. Very low priority upgrade.
|
119 |
|
4 |
Tags: mail, smtp, wp_mail, mailer, phpmailer
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.9.2
|
7 |
+
Stable tag: 0.8.4
|
8 |
|
9 |
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
|
10 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 0.8.4 =
|
65 |
+
* Minor bugfix, remove use of esc_html() to improve backwards compatibility.
|
66 |
+
* Removed second options page menu props ovidiu.
|
67 |
+
|
68 |
= 0.8.3 =
|
69 |
* Bugfix, return WPMS_MAIL_FROM_NAME, props nacin.
|
70 |
+
* Add Settings link, props Mike Challis http://profiles.wordpress.org/MikeChallis/
|
71 |
|
72 |
= 0.8.2 =
|
73 |
* Bugfix, call phpmailer_init_smtp() correctly, props Sinklar.
|
119 |
|
120 |
== Upgrade Notice ==
|
121 |
|
122 |
+
= 0.8.4 =
|
123 |
+
Minor bugfix for users using constants. Another very low priority upgrade. Apologies for the version creep.
|
124 |
+
|
125 |
= 0.8.3 =
|
126 |
Minor bugfix for users using constants. Very low priority upgrade.
|
127 |
|
wp_mail_smtp.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP-Mail-SMTP
|
4 |
-
Version: 0.8.
|
5 |
Plugin URI: http://www.callum-macdonald.com/code/wp-mail-smtp/
|
6 |
Description: Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
|
7 |
Author: Callum Macdonald
|
@@ -38,7 +38,8 @@ define('WPMS_SMTP_PASS', 'password'); // SMTP authentication password, only used
|
|
38 |
/**
|
39 |
* CHANGELOG
|
40 |
*
|
41 |
-
* 0.8.
|
|
|
42 |
* 0.8.2 - Bugfix, call phpmailer_init_smtp() correctly, props Sinklar.
|
43 |
* 0.8.1 - Internationalisation improvements.
|
44 |
* 0.8 - Added port, SSL/TLS, option whitelisting, validate_email(), and constant options.
|
@@ -425,19 +426,16 @@ function wp_mail_plugin_action_links( $links, $file ) {
|
|
425 |
if ( $file != plugin_basename( __FILE__ ))
|
426 |
return $links;
|
427 |
|
428 |
-
$settings_link = '<a href="plugins.php?page=wp-mail-smtp/wp_mail_smtp.php">' .
|
429 |
|
430 |
array_unshift( $links, $settings_link );
|
431 |
|
432 |
return $links;
|
433 |
}
|
434 |
|
435 |
-
function add_tabs() {
|
436 |
-
add_submenu_page('plugins.php', __('WP Mail Options', 'wp_mail_smtp'), __('WP Mail Options', 'wp_mail_smtp'), 'manage_options', __FILE__,'wp_mail_smtp_options_page');
|
437 |
-
}
|
438 |
-
|
439 |
// Add an action on phpmailer_init
|
440 |
add_action('phpmailer_init','phpmailer_init_smtp');
|
|
|
441 |
if (!defined('WPMS_ON') || !WPMS_ON) {
|
442 |
// Whitelist our options
|
443 |
add_filter('whitelist_options', 'wp_mail_smtp_whitelist_options');
|
@@ -445,17 +443,14 @@ if (!defined('WPMS_ON') || !WPMS_ON) {
|
|
445 |
add_action('admin_menu','wp_mail_smtp_menus');
|
446 |
// Add an activation hook for this plugin
|
447 |
register_activation_hook(__FILE__,'wp_mail_smtp_activate');
|
|
|
|
|
448 |
}
|
|
|
449 |
// Add filters to replace the mail from name and emailaddress
|
450 |
add_filter('wp_mail_from','wp_mail_smtp_mail_from');
|
451 |
add_filter('wp_mail_from_name','wp_mail_smtp_mail_from_name');
|
452 |
|
453 |
-
// admin options
|
454 |
-
add_action('admin_menu', 'add_tabs',1);
|
455 |
-
|
456 |
-
// adds "Settings" link to the plugin action page
|
457 |
-
add_filter( 'plugin_action_links', 'wp_mail_plugin_action_links',10,2);
|
458 |
-
|
459 |
load_plugin_textdomain('wp_mail_smtp', false, dirname(plugin_basename(__FILE__)) . '/langs');
|
460 |
|
461 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP-Mail-SMTP
|
4 |
+
Version: 0.8.4
|
5 |
Plugin URI: http://www.callum-macdonald.com/code/wp-mail-smtp/
|
6 |
Description: Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
|
7 |
Author: Callum Macdonald
|
38 |
/**
|
39 |
* CHANGELOG
|
40 |
*
|
41 |
+
* 0.8.4 - Minor bugfix, remove use of esc_html() to improve backwards compatibility. Removed second options page menu props ovidiu.
|
42 |
+
* 0.8.3 - Bugfix, return WPMS_MAIL_FROM_NAME, props nacin. Add Settings link, props MikeChallis.
|
43 |
* 0.8.2 - Bugfix, call phpmailer_init_smtp() correctly, props Sinklar.
|
44 |
* 0.8.1 - Internationalisation improvements.
|
45 |
* 0.8 - Added port, SSL/TLS, option whitelisting, validate_email(), and constant options.
|
426 |
if ( $file != plugin_basename( __FILE__ ))
|
427 |
return $links;
|
428 |
|
429 |
+
$settings_link = '<a href="plugins.php?page=wp-mail-smtp/wp_mail_smtp.php">' . __( 'Settings', 'wp_mail_smtp' ) . '</a>';
|
430 |
|
431 |
array_unshift( $links, $settings_link );
|
432 |
|
433 |
return $links;
|
434 |
}
|
435 |
|
|
|
|
|
|
|
|
|
436 |
// Add an action on phpmailer_init
|
437 |
add_action('phpmailer_init','phpmailer_init_smtp');
|
438 |
+
|
439 |
if (!defined('WPMS_ON') || !WPMS_ON) {
|
440 |
// Whitelist our options
|
441 |
add_filter('whitelist_options', 'wp_mail_smtp_whitelist_options');
|
443 |
add_action('admin_menu','wp_mail_smtp_menus');
|
444 |
// Add an activation hook for this plugin
|
445 |
register_activation_hook(__FILE__,'wp_mail_smtp_activate');
|
446 |
+
// Adds "Settings" link to the plugin action page
|
447 |
+
add_filter( 'plugin_action_links', 'wp_mail_plugin_action_links',10,2);
|
448 |
}
|
449 |
+
|
450 |
// Add filters to replace the mail from name and emailaddress
|
451 |
add_filter('wp_mail_from','wp_mail_smtp_mail_from');
|
452 |
add_filter('wp_mail_from_name','wp_mail_smtp_mail_from_name');
|
453 |
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
load_plugin_textdomain('wp_mail_smtp', false, dirname(plugin_basename(__FILE__)) . '/langs');
|
455 |
|
456 |
?>
|