Version Description
- Set email charset to utf-8 for test email functionality.
- Run additional checks on the password only if mbstring is enabled on the server. This should fix the issue with password input field not appearing on some servers.
Download this release
Release Info
Developer | wpecommerce |
Plugin | Easy WP SMTP |
Version | 1.2.0 |
Comparing to | |
See all releases |
Code changes from version 1.1.9 to 1.2.0
- easy-wp-smtp.php +12 -4
- readme.txt +6 -1
easy-wp-smtp.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy WP SMTP
|
4 |
-
Version: 1.
|
5 |
Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
|
6 |
Author: wpecommerce
|
7 |
Author URI: https://wp-ecommerce.net/
|
@@ -344,8 +344,11 @@ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
|
|
344 |
|
345 |
require_once( ABSPATH . WPINC . '/class-phpmailer.php' );
|
346 |
$mail = new PHPMailer();
|
347 |
-
|
348 |
-
|
|
|
|
|
|
|
349 |
$from_email = $swpsmtp_options['from_email_field'];
|
350 |
|
351 |
$mail->IsSMTP();
|
@@ -367,7 +370,7 @@ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
|
|
367 |
$mail->Port = $swpsmtp_options['smtp_settings']['port'];
|
368 |
$mail->SetFrom( $from_email, $from_name );
|
369 |
$mail->isHTML( true );
|
370 |
-
$mail->Subject =
|
371 |
$mail->MsgHTML( $message );
|
372 |
$mail->AddAddress( $to_email );
|
373 |
$mail->SMTPDebug = 0;
|
@@ -406,6 +409,11 @@ if ( ! function_exists( 'swpsmtp_get_password' ) ) {
|
|
406 |
$temp_password = $swpsmtp_options['smtp_settings']['password'];
|
407 |
$password = "";
|
408 |
$decoded_pass = base64_decode($temp_password);
|
|
|
|
|
|
|
|
|
|
|
409 |
if (base64_encode($decoded_pass) === $temp_password) { //it might be encoded
|
410 |
if(false === mb_detect_encoding($decoded_pass)){ //could not find character encoding.
|
411 |
$password = $temp_password;
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Easy WP SMTP
|
4 |
+
Version: 1.2.0
|
5 |
Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
|
6 |
Author: wpecommerce
|
7 |
Author URI: https://wp-ecommerce.net/
|
344 |
|
345 |
require_once( ABSPATH . WPINC . '/class-phpmailer.php' );
|
346 |
$mail = new PHPMailer();
|
347 |
+
|
348 |
+
$charset = get_bloginfo( 'charset' );
|
349 |
+
$mail->CharSet = $charset;
|
350 |
+
|
351 |
+
$from_name = $swpsmtp_options['from_name_field'];
|
352 |
$from_email = $swpsmtp_options['from_email_field'];
|
353 |
|
354 |
$mail->IsSMTP();
|
370 |
$mail->Port = $swpsmtp_options['smtp_settings']['port'];
|
371 |
$mail->SetFrom( $from_email, $from_name );
|
372 |
$mail->isHTML( true );
|
373 |
+
$mail->Subject = $subject;
|
374 |
$mail->MsgHTML( $message );
|
375 |
$mail->AddAddress( $to_email );
|
376 |
$mail->SMTPDebug = 0;
|
409 |
$temp_password = $swpsmtp_options['smtp_settings']['password'];
|
410 |
$password = "";
|
411 |
$decoded_pass = base64_decode($temp_password);
|
412 |
+
/* no additional checks for servers that aren't configured with mbstring enabled */
|
413 |
+
if ( ! function_exists( 'mb_detect_encoding' ) ){
|
414 |
+
return $decoded_pass;
|
415 |
+
}
|
416 |
+
/* end of mbstring check */
|
417 |
if (base64_encode($decoded_pass) === $temp_password) { //it might be encoded
|
418 |
if(false === mb_detect_encoding($decoded_pass)){ //could not find character encoding.
|
419 |
$password = $temp_password;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-
|
|
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: 4.3
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -75,6 +75,11 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
78 |
= 1.1.9 =
|
79 |
|
80 |
* Easy SMTP is now compatible with WordPress 4.3
|
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: 4.3
|
7 |
+
Stable tag: 1.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.2.0 =
|
79 |
+
|
80 |
+
* Set email charset to utf-8 for test email functionality.
|
81 |
+
* Run additional checks on the password only if mbstring is enabled on the server. This should fix the issue with password input field not appearing on some servers.
|
82 |
+
|
83 |
= 1.1.9 =
|
84 |
|
85 |
* Easy SMTP is now compatible with WordPress 4.3
|