Easy WP SMTP - Version 1.2.3

Version Description

  • Easy WP SMTP is now compatible with WordPress 4.5.
Download this release

Release Info

Developer mra13
Plugin Icon 128x128 Easy WP SMTP
Version 1.2.3
Comparing to
See all releases

Code changes from version 1.2.2 to 1.2.3

Files changed (2) hide show
  1. easy-wp-smtp.php +8 -7
  2. readme.txt +7 -3
easy-wp-smtp.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy WP SMTP
4
- Version: 1.2.2
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/
@@ -177,7 +177,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
177
  $swpsmtp_options['from_name_field'] = isset( $_POST['swpsmtp_from_name'] ) ? sanitize_text_field(wp_unslash($_POST['swpsmtp_from_name'])) : '';
178
  if( isset( $_POST['swpsmtp_from_email'] ) ){
179
  if( is_email( $_POST['swpsmtp_from_email'] ) ){
180
- $swpsmtp_options['from_email_field'] = $_POST['swpsmtp_from_email'];
181
  }
182
  else{
183
  $error .= " " . __( "Please enter a valid email address in the 'FROM' field.", 'easy-wp-smtp' );
@@ -185,8 +185,8 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
185
  }
186
 
187
  $swpsmtp_options['smtp_settings']['host'] = sanitize_text_field($_POST['swpsmtp_smtp_host']);
188
- $swpsmtp_options['smtp_settings']['type_encryption'] = ( isset( $_POST['swpsmtp_smtp_type_encryption'] ) ) ? $_POST['swpsmtp_smtp_type_encryption'] : 'none' ;
189
- $swpsmtp_options['smtp_settings']['autentication'] = ( isset( $_POST['swpsmtp_smtp_autentication'] ) ) ? $_POST['swpsmtp_smtp_autentication'] : 'yes' ;
190
  $swpsmtp_options['smtp_settings']['username'] = sanitize_text_field($_POST['swpsmtp_smtp_username']);
191
  $smtp_password = trim($_POST['swpsmtp_smtp_password']);
192
  $swpsmtp_options['smtp_settings']['password'] = base64_encode($smtp_password);
@@ -197,7 +197,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
197
  $swpsmtp_options['smtp_settings']['port'] = '25';
198
  $error .= " " . __( "Please enter a valid port in the 'SMTP Port' field.", 'easy-wp-smtp' );
199
  } else {
200
- $swpsmtp_options['smtp_settings']['port'] = $_POST['swpsmtp_smtp_port'];
201
  }
202
  }
203
 
@@ -297,7 +297,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
297
  <tr class="ad_opt swpsmtp_smtp_options">
298
  <th><?php _e( 'SMTP Password', 'easy-wp-smtp' ); ?></th>
299
  <td>
300
- <input type='password' name='swpsmtp_smtp_password' value='<?php echo swpsmtp_get_password(); ?>' /><br />
301
  <span class="swpsmtp_info"><?php _e( "The password to login to your mail server", 'easy-wp-smtp' ); ?></span>
302
  </td>
303
  </tr>
@@ -453,9 +453,10 @@ if ( ! function_exists( 'swpsmtp_get_password' ) ) {
453
  if ( ! function_exists( 'swpsmtp_admin_notice' ) ) {
454
  function swpsmtp_admin_notice() {
455
  if(!swpsmtp_credentials_configured()){
 
456
  ?>
457
  <div class="error">
458
- <p><?php _e( 'Please configure your SMTP credentials in the settings in order to send email using Easy WP SMTP plugin.', 'easy-wp-smtp' ); ?></p>
459
  </div>
460
  <?php
461
  }
1
  <?php
2
  /*
3
  Plugin Name: Easy WP SMTP
4
+ Version: 1.2.3
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/
177
  $swpsmtp_options['from_name_field'] = isset( $_POST['swpsmtp_from_name'] ) ? sanitize_text_field(wp_unslash($_POST['swpsmtp_from_name'])) : '';
178
  if( isset( $_POST['swpsmtp_from_email'] ) ){
179
  if( is_email( $_POST['swpsmtp_from_email'] ) ){
180
+ $swpsmtp_options['from_email_field'] = sanitize_email($_POST['swpsmtp_from_email']);
181
  }
182
  else{
183
  $error .= " " . __( "Please enter a valid email address in the 'FROM' field.", 'easy-wp-smtp' );
185
  }
186
 
187
  $swpsmtp_options['smtp_settings']['host'] = sanitize_text_field($_POST['swpsmtp_smtp_host']);
188
+ $swpsmtp_options['smtp_settings']['type_encryption'] = ( isset( $_POST['swpsmtp_smtp_type_encryption'] ) ) ? sanitize_text_field($_POST['swpsmtp_smtp_type_encryption']) : 'none' ;
189
+ $swpsmtp_options['smtp_settings']['autentication'] = ( isset( $_POST['swpsmtp_smtp_autentication'] ) ) ? sanitize_text_field($_POST['swpsmtp_smtp_autentication']) : 'yes' ;
190
  $swpsmtp_options['smtp_settings']['username'] = sanitize_text_field($_POST['swpsmtp_smtp_username']);
191
  $smtp_password = trim($_POST['swpsmtp_smtp_password']);
192
  $swpsmtp_options['smtp_settings']['password'] = base64_encode($smtp_password);
197
  $swpsmtp_options['smtp_settings']['port'] = '25';
198
  $error .= " " . __( "Please enter a valid port in the 'SMTP Port' field.", 'easy-wp-smtp' );
199
  } else {
200
+ $swpsmtp_options['smtp_settings']['port'] = sanitize_text_field($_POST['swpsmtp_smtp_port']);
201
  }
202
  }
203
 
297
  <tr class="ad_opt swpsmtp_smtp_options">
298
  <th><?php _e( 'SMTP Password', 'easy-wp-smtp' ); ?></th>
299
  <td>
300
+ <input type='password' name='swpsmtp_smtp_password' value='<?php echo esc_attr(swpsmtp_get_password()); ?>' /><br />
301
  <span class="swpsmtp_info"><?php _e( "The password to login to your mail server", 'easy-wp-smtp' ); ?></span>
302
  </td>
303
  </tr>
453
  if ( ! function_exists( 'swpsmtp_admin_notice' ) ) {
454
  function swpsmtp_admin_notice() {
455
  if(!swpsmtp_credentials_configured()){
456
+ $settings_url = admin_url().'options-general.php?page=swpsmtp_settings';
457
  ?>
458
  <div class="error">
459
+ <p><?php printf(__('Please configure your SMTP credentials in the <a href="%s">settings menu</a> in order to send email using Easy WP SMTP plugin.', 'easy-wp-smtp'), esc_url($settings_url) ); ?></p>
460
  </div>
461
  <?php
462
  }
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Easy WP SMTP ===
2
  Contributors: wpecommerce
3
  Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-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: 4.3
6
- Tested up to: 4.4
7
- Stable tag: 1.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -75,6 +75,10 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
75
 
76
  == Changelog ==
77
 
 
 
 
 
78
  = 1.2.2 =
79
 
80
  * Easy WP SMTP is now compatible with WordPress 4.4.
1
  === Easy WP SMTP ===
2
  Contributors: wpecommerce
3
  Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-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: 4.3
6
+ Tested up to: 4.7
7
+ Stable tag: 1.2.3
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.3 =
79
+
80
+ * Easy WP SMTP is now compatible with WordPress 4.5.
81
+
82
  = 1.2.2 =
83
 
84
  * Easy WP SMTP is now compatible with WordPress 4.4.