WP Mail SMTP by WPForms - Version 0.4.2

Version Description

Download this release

Release Info

Developer chmac
Plugin Icon 128x128 WP Mail SMTP by WPForms
Version 0.4.2
Comparing to
See all releases

Code changes from version 0.4.1 to 0.4.2

Files changed (2) hide show
  1. readme.txt +1 -1
  2. wp_mail_smtp.php +7 -4
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.0
6
Tested up to: 2.3
7
- Stable tag: 0.4.1
8
9
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc.
10
4
Tags: mail, smtp, wp_mail, mailer, phpmailer
5
Requires at least: 2.0
6
Tested up to: 2.3
7
+ Stable tag: 0.4.2
8
9
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc.
10
wp_mail_smtp.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: WP-Mail-SMTP
4
- Version: 0.4.1
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 host, username, password, etc.
7
Author: Callum Macdonald
@@ -22,6 +22,7 @@ Author URI: http://www.callum-macdonald.com/
22
*
23
* CHANGELOG
24
*
25
* 0.4.1 - Added $phpmailer->ErroInfo to the test mail output
26
* 0.4 - Added the test email feature and cleaned up some other bits and pieces
27
* 0.3.2 - Changed to use register_activation_hook for greater compatability
@@ -103,7 +104,7 @@ if (!function_exists('wp_mail_smtp_options_page')) {
103
function wp_mail_smtp_options_page() {
104
105
// Load the options
106
- global $wpms_options;
107
108
// Send a test mail if necessary
109
if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test') && isset($_POST['to'])) {
@@ -121,8 +122,10 @@ if (!function_exists('wp_mail_smtp_options_page')) {
121
<div id="message" class="updated fade"><p><strong><?php _e('Test Message Sent'); ?></strong></p>
122
<p><?php _e('The result was:'); ?></p>
123
<pre><?php var_dump($result); ?></pre>
124
- <p><?php _e('The last error message (if any) was:'); ?></p>
125
- <pre><?php print($phpmailer->ErrorInfo); ?></pre>
126
</div>
127
<?php
128
1
<?php
2
/*
3
Plugin Name: WP-Mail-SMTP
4
+ Version: 0.4.2
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 host, username, password, etc.
7
Author: Callum Macdonald
22
*
23
* CHANGELOG
24
*
25
+ * 0.4.2 - Fixed a bug in 0.4.1 and added more debugging output
26
* 0.4.1 - Added $phpmailer->ErroInfo to the test mail output
27
* 0.4 - Added the test email feature and cleaned up some other bits and pieces
28
* 0.3.2 - Changed to use register_activation_hook for greater compatability
104
function wp_mail_smtp_options_page() {
105
106
// Load the options
107
+ global $wpms_options, $phpmailer;
108
109
// Send a test mail if necessary
110
if (isset($_POST['wpms_action']) && $_POST['wpms_action'] == __('Send Test') && isset($_POST['to'])) {
122
<div id="message" class="updated fade"><p><strong><?php _e('Test Message Sent'); ?></strong></p>
123
<p><?php _e('The result was:'); ?></p>
124
<pre><?php var_dump($result); ?></pre>
125
+ <?php if ($result != true) { ?>
126
+ <p><?php _e('The full debugging output is shown below:'); ?></p>
127
+ <pre><?php var_dump($phpmailer); ?></pre>
128
+ <?php } ?>
129
</div>
130
<?php
131