WP Mail SMTP by WPForms - Version 0.9.4

Version Description

  • Improvement to the test email function, very low priority update.
Download this release

Release Info

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

Code changes from version 0.9.3 to 0.9.4

Files changed (2) hide show
  1. readme.txt +9 -3
  2. wp_mail_smtp.php +4 -4
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: 3.7
7
- Stable tag: 0.9.3
8
9
Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
10
@@ -62,8 +62,11 @@ By all means please contact me to discuss features or options you'd like to see
62
63
== Changelog ==
64
65
= 0.9.3 =
66
- * Fixing reported issue with passing by reference.
67
68
= 0.9.2 =
69
* Removing the deprecation notice.
@@ -143,6 +146,9 @@ By all means please contact me to discuss features or options you'd like to see
143
144
== Upgrade Notice ==
145
146
= 0.9.3 =
147
Fixing reported issue with passing by reference.
148
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: 3.7.1
7
+ Stable tag: 0.9.4
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.4 =
66
+ * Improvement to the test email function, very low priority update.
67
+
68
= 0.9.3 =
69
+ * Fixing reported issue with passing by reference. props Adam Conway
70
71
= 0.9.2 =
72
* Removing the deprecation notice.
146
147
== Upgrade Notice ==
148
149
+ = 0.9.4 =
150
+ Improvement to the test email function, very low priority update.
151
+
152
= 0.9.3 =
153
Fixing reported issue with passing by reference.
154
wp_mail_smtp.php CHANGED
@@ -1,7 +1,7 @@
1
<?php
2
/*
3
Plugin Name: WP-Mail-SMTP
4
- Version: 0.9.3
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
@@ -174,7 +174,7 @@ function wp_mail_smtp_options_page() {
174
if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) {
175
require_once ABSPATH . WPINC . '/class-phpmailer.php';
176
require_once ABSPATH . WPINC . '/class-smtp.php';
177
- $phpmailer = new PHPMailer();
178
}
179
180
// Send a test mail if necessary
@@ -185,8 +185,8 @@ function wp_mail_smtp_options_page() {
185
$subject = 'WP Mail SMTP: ' . __('Test mail to ', 'wp_mail_smtp') . $to;
186
$message = __('This is a test email generated by the WP Mail SMTP WordPress plugin.', 'wp_mail_smtp');
187
188
- // Set SMTPDebug to level 2
189
- $phpmailer->SMTPDebug = 2;
190
191
// Start output buffering to grab smtp debugging output
192
ob_start();
1
<?php
2
/*
3
Plugin Name: WP-Mail-SMTP
4
+ Version: 0.9.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
174
if ( !is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' ) ) {
175
require_once ABSPATH . WPINC . '/class-phpmailer.php';
176
require_once ABSPATH . WPINC . '/class-smtp.php';
177
+ $phpmailer = new PHPMailer( true );
178
}
179
180
// Send a test mail if necessary
185
$subject = 'WP Mail SMTP: ' . __('Test mail to ', 'wp_mail_smtp') . $to;
186
$message = __('This is a test email generated by the WP Mail SMTP WordPress plugin.', 'wp_mail_smtp');
187
188
+ // Set SMTPDebug to true
189
+ $phpmailer->SMTPDebug = true;
190
191
// Start output buffering to grab smtp debugging output
192
ob_start();