Version Description
- Added a new option to the settings which allows a user to enable/disable SMTP debug
=
Download this release
Release Info
| Developer | wpecommerce |
| Plugin | |
| Version | 1.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.2 to 1.0.3
- easy_wp_smtp.php +7 -6
- easy_wp_smtp_admin.php +12 -0
- readme.txt +10 -3
easy_wp_smtp.php
CHANGED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Easy WP SMTP
|
| 4 |
-
Version: 1.0.
|
| 5 |
Plugin URI: http://wp-ecommerce.net/?p=2197
|
| 6 |
Author: wpecommerce
|
| 7 |
Author URI: http://wp-ecommerce.net/
|
| 8 |
Description: Send email via SMTP from your WordPress Blog
|
| 9 |
*/
|
| 10 |
-
define('EASY_WP_SMTP_PLUGIN_VERSION', "1.0.
|
| 11 |
$ewpsOptions = get_option("easy_wp_smtp_options");
|
| 12 |
|
| 13 |
function easy_wp_smtp($phpmailer){
|
|
@@ -28,10 +28,10 @@ function easy_wp_smtp($phpmailer){
|
|
| 28 |
$phpmailer->Username = $ewpsOptions["username"];
|
| 29 |
$phpmailer->Password = $ewpsOptions["password"];
|
| 30 |
}
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
}
|
| 36 |
add_action('phpmailer_init','easy_wp_smtp');
|
| 37 |
|
|
@@ -45,6 +45,7 @@ function easy_wp_smtp_activate(){
|
|
| 45 |
$ewpsOptions["smtpauth"] = "yes";
|
| 46 |
$ewpsOptions["username"] = "";
|
| 47 |
$ewpsOptions["password"] = "";
|
|
|
|
| 48 |
$ewpsOptions["deactivate"] = "";
|
| 49 |
add_option("easy_wp_smtp_options",$ewpsOptions);
|
| 50 |
}
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Easy WP SMTP
|
| 4 |
+
Version: 1.0.3
|
| 5 |
Plugin URI: http://wp-ecommerce.net/?p=2197
|
| 6 |
Author: wpecommerce
|
| 7 |
Author URI: http://wp-ecommerce.net/
|
| 8 |
Description: Send email via SMTP from your WordPress Blog
|
| 9 |
*/
|
| 10 |
+
define('EASY_WP_SMTP_PLUGIN_VERSION', "1.0.3");
|
| 11 |
$ewpsOptions = get_option("easy_wp_smtp_options");
|
| 12 |
|
| 13 |
function easy_wp_smtp($phpmailer){
|
| 28 |
$phpmailer->Username = $ewpsOptions["username"];
|
| 29 |
$phpmailer->Password = $ewpsOptions["password"];
|
| 30 |
}
|
| 31 |
+
if($ewpsOptions["debug"]=="yes")
|
| 32 |
+
{
|
| 33 |
+
$phpmailer->SMTPDebug = 2;
|
| 34 |
+
}
|
| 35 |
}
|
| 36 |
add_action('phpmailer_init','easy_wp_smtp');
|
| 37 |
|
| 45 |
$ewpsOptions["smtpauth"] = "yes";
|
| 46 |
$ewpsOptions["username"] = "";
|
| 47 |
$ewpsOptions["password"] = "";
|
| 48 |
+
$ewpsOptions["debug"] = "";
|
| 49 |
$ewpsOptions["deactivate"] = "";
|
| 50 |
add_option("easy_wp_smtp_options",$ewpsOptions);
|
| 51 |
}
|
easy_wp_smtp_admin.php
CHANGED
|
@@ -20,6 +20,7 @@ function easy_wp_smtp_options_page()
|
|
| 20 |
$ewpsOptions["smtpauth"] = trim($_POST['easy_wp_smtp_smtpauth']);
|
| 21 |
$ewpsOptions["username"] = trim($_POST['easy_wp_smtp_username']);
|
| 22 |
$ewpsOptions["password"] = trim($_POST['easy_wp_smtp_password']);
|
|
|
|
| 23 |
$ewpsOptions["deactivate"] = (isset($_POST['easy_wp_smtp_deactivate'])) ? trim($_POST['easy_wp_smtp_deactivate']) : "";
|
| 24 |
update_option("easy_wp_smtp_options",$ewpsOptions);
|
| 25 |
if(!is_email($ewpsOptions["from"])){
|
|
@@ -193,6 +194,17 @@ Easy WP SMTP v<?php echo EASY_WP_SMTP_PLUGIN_VERSION; ?>
|
|
| 193 |
<p>The password that you use to login to your mail server</p>
|
| 194 |
</td>
|
| 195 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
<!--
|
| 197 |
<tr valign="top">
|
| 198 |
<th scope="row">
|
| 20 |
$ewpsOptions["smtpauth"] = trim($_POST['easy_wp_smtp_smtpauth']);
|
| 21 |
$ewpsOptions["username"] = trim($_POST['easy_wp_smtp_username']);
|
| 22 |
$ewpsOptions["password"] = trim($_POST['easy_wp_smtp_password']);
|
| 23 |
+
$ewpsOptions["debug"] = (isset($_POST['easy_wp_smtp_enable_debug'])) ? trim($_POST['easy_wp_smtp_enable_debug']) : "";
|
| 24 |
$ewpsOptions["deactivate"] = (isset($_POST['easy_wp_smtp_deactivate'])) ? trim($_POST['easy_wp_smtp_deactivate']) : "";
|
| 25 |
update_option("easy_wp_smtp_options",$ewpsOptions);
|
| 26 |
if(!is_email($ewpsOptions["from"])){
|
| 194 |
<p>The password that you use to login to your mail server</p>
|
| 195 |
</td>
|
| 196 |
</tr>
|
| 197 |
+
<tr valign="top">
|
| 198 |
+
<th scope="row">
|
| 199 |
+
Enable SMTP Debug
|
| 200 |
+
</th>
|
| 201 |
+
<td>
|
| 202 |
+
<label>
|
| 203 |
+
<input type="checkbox" name="easy_wp_smtp_enable_debug" value="yes" <?php if($ewpsOptions["debug"]=='yes') echo 'checked="checked"'; ?> />
|
| 204 |
+
If enabled the SMTP debug output will be printed on the screen. This option is very useful if you are having issues with sending emails.
|
| 205 |
+
</label>
|
| 206 |
+
</td>
|
| 207 |
+
</tr>
|
| 208 |
<!--
|
| 209 |
<tr valign="top">
|
| 210 |
<th scope="row">
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: wpecommerce
|
|
| 3 |
Donate link: http://wp-ecommerce.net/?p=2197
|
| 4 |
Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mail, privacy, security, sendmail, ssl, tls, wp-phpmailer, mail smtp, wp smtp
|
| 5 |
Requires at least: 3.0
|
| 6 |
-
Tested up to: 3.5.
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -37,6 +37,7 @@ The general settings section consists of the following options
|
|
| 37 |
* SMTP Authentication: No/Yes (This option should always be checked "Yes")
|
| 38 |
* Username: The username that you use to login to your mail server
|
| 39 |
* Password: The password that you use to login to your mail server
|
|
|
|
| 40 |
|
| 41 |
For detailed documentation on how you can configure these options please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
|
| 42 |
|
|
@@ -74,4 +75,10 @@ For screenshots please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/e
|
|
| 74 |
* First commit of the plugin
|
| 75 |
|
| 76 |
= 1.0.2 =
|
| 77 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
Donate link: http://wp-ecommerce.net/?p=2197
|
| 4 |
Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mail, privacy, security, sendmail, ssl, tls, wp-phpmailer, mail smtp, wp smtp
|
| 5 |
Requires at least: 3.0
|
| 6 |
+
Tested up to: 3.5.2
|
| 7 |
+
Stable tag: 1.0.3
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 37 |
* SMTP Authentication: No/Yes (This option should always be checked "Yes")
|
| 38 |
* Username: The username that you use to login to your mail server
|
| 39 |
* Password: The password that you use to login to your mail server
|
| 40 |
+
* Enable Debug: Use this option if you are having issues with sending emails since it allows you to see the SMTP debug output on the screen.
|
| 41 |
|
| 42 |
For detailed documentation on how you can configure these options please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
|
| 43 |
|
| 75 |
* First commit of the plugin
|
| 76 |
|
| 77 |
= 1.0.2 =
|
| 78 |
+
* Fixed a bug where the debug output was being displayed on the front end
|
| 79 |
+
|
| 80 |
+
= 1.0.3 =
|
| 81 |
+
* Added a new option to the settings which allows a user to enable/disable SMTP debug
|
| 82 |
+
|
| 83 |
+
== Upgrade Notice ==
|
| 84 |
+
none
|
