Version Description
- Minor security fix, hat tip JD Grimes.
Download this release
Release Info
| Developer | chmac |
| Plugin | |
| Version | 0.9.5 |
| Comparing to | |
| See all releases | |
Code changes from version 0.9.4 to 0.9.5
- readme.txt +8 -2
- wp_mail_smtp.php +4 -1
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: chmac
|
|
| 3 |
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:
|
| 7 |
-
Stable tag: 0.9.
|
| 8 |
|
| 9 |
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
|
| 10 |
|
|
@@ -62,6 +62,9 @@ By all means please contact me to discuss features or options you'd like to see
|
|
| 62 |
|
| 63 |
== Changelog ==
|
| 64 |
|
|
|
|
|
|
|
|
|
|
| 65 |
= 0.9.4 =
|
| 66 |
* Improvement to the test email function, very low priority update.
|
| 67 |
|
|
@@ -146,6 +149,9 @@ By all means please contact me to discuss features or options you'd like to see
|
|
| 146 |
|
| 147 |
== Upgrade Notice ==
|
| 148 |
|
|
|
|
|
|
|
|
|
|
| 149 |
= 0.9.4 =
|
| 150 |
Improvement to the test email function, very low priority update.
|
| 151 |
|
| 3 |
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: 4.0
|
| 7 |
+
Stable tag: 0.9.5
|
| 8 |
|
| 9 |
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
|
| 10 |
|
| 62 |
|
| 63 |
== Changelog ==
|
| 64 |
|
| 65 |
+
= 0.9.5 =
|
| 66 |
+
* Minor security fix, hat tip JD Grimes.
|
| 67 |
+
|
| 68 |
= 0.9.4 =
|
| 69 |
* Improvement to the test email function, very low priority update.
|
| 70 |
|
| 149 |
|
| 150 |
== Upgrade Notice ==
|
| 151 |
|
| 152 |
+
= 0.9.5 =
|
| 153 |
+
Minor security fix, hat tip JD Grimes.
|
| 154 |
+
|
| 155 |
= 0.9.4 =
|
| 156 |
Improvement to the test email function, very low priority update.
|
| 157 |
|
wp_mail_smtp.php
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: WP-Mail-SMTP
|
| 4 |
-
Version: 0.9.
|
| 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
|
|
@@ -180,6 +180,8 @@ function wp_mail_smtp_options_page() {
|
|
| 180 |
// Send a test mail if necessary
|
| 181 |
if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test', 'wp_mail_smtp') && isset($_POST['to'])) {
|
| 182 |
|
|
|
|
|
|
|
| 183 |
// Set up the mail variables
|
| 184 |
$to = $_POST['to'];
|
| 185 |
$subject = 'WP Mail SMTP: ' . __('Test mail to ', 'wp_mail_smtp') . $to;
|
|
@@ -313,6 +315,7 @@ function wp_mail_smtp_options_page() {
|
|
| 313 |
<h3><?php _e('Send a Test Email', 'wp_mail_smtp'); ?></h3>
|
| 314 |
|
| 315 |
<form method="POST" action="options-general.php?page=<?php echo plugin_basename(__FILE__); ?>">
|
|
|
|
| 316 |
<table class="optiontable form-table">
|
| 317 |
<tr valign="top">
|
| 318 |
<th scope="row"><label for="to"><?php _e('To:', 'wp_mail_smtp'); ?></label></th>
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: WP-Mail-SMTP
|
| 4 |
+
Version: 0.9.5
|
| 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
|
| 180 |
// Send a test mail if necessary
|
| 181 |
if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test', 'wp_mail_smtp') && isset($_POST['to'])) {
|
| 182 |
|
| 183 |
+
check_admin_referer('test-email');
|
| 184 |
+
|
| 185 |
// Set up the mail variables
|
| 186 |
$to = $_POST['to'];
|
| 187 |
$subject = 'WP Mail SMTP: ' . __('Test mail to ', 'wp_mail_smtp') . $to;
|
| 315 |
<h3><?php _e('Send a Test Email', 'wp_mail_smtp'); ?></h3>
|
| 316 |
|
| 317 |
<form method="POST" action="options-general.php?page=<?php echo plugin_basename(__FILE__); ?>">
|
| 318 |
+
<?php wp_nonce_field('test-email'); ?>
|
| 319 |
<table class="optiontable form-table">
|
| 320 |
<tr valign="top">
|
| 321 |
<th scope="row"><label for="to"><?php _e('To:', 'wp_mail_smtp'); ?></label></th>
|
