Version Description
- Easy SMTP is now compatible with WordPress 4.3
Download this release
Release Info
| Developer | wpecommerce |
| Plugin | |
| Version | 1.1.9 |
| Comparing to | |
| See all releases | |
Code changes from version 1.1.0 to 1.1.9
- css/style.css +8 -7
- easy-wp-smtp.php +46 -24
- readme.txt +48 -5
css/style.css
CHANGED
|
@@ -2,12 +2,13 @@
|
|
| 2 |
* Settings page
|
| 3 |
*/
|
| 4 |
.swpsmtp_info {
|
| 5 |
-
|
| 6 |
-
|
| 7 |
}
|
| 8 |
-
|
| 9 |
-
input[type='
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
| 13 |
}
|
| 2 |
* Settings page
|
| 3 |
*/
|
| 4 |
.swpsmtp_info {
|
| 5 |
+
font-size: 10px;
|
| 6 |
+
color: #888;
|
| 7 |
}
|
| 8 |
+
#swpsmtp_settings_form input[type='text'],
|
| 9 |
+
input[type='password']{
|
| 10 |
+
width: 250px;
|
| 11 |
+
}
|
| 12 |
+
textarea#swpsmtp_message{
|
| 13 |
+
width: 250px;
|
| 14 |
}
|
easy-wp-smtp.php
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Easy WP SMTP
|
| 4 |
-
Version: 1.1.
|
| 5 |
-
Plugin URI:
|
| 6 |
Author: wpecommerce
|
| 7 |
-
Author URI:
|
| 8 |
Description: Send email via SMTP from your WordPress Blog
|
| 9 |
*/
|
| 10 |
|
|
@@ -120,15 +120,15 @@ if ( ! function_exists ( 'swpsmtp_admin_head' ) ) {
|
|
| 120 |
* @return void
|
| 121 |
*/
|
| 122 |
if ( ! function_exists ( 'swpsmtp_init_smtp' ) ) {
|
| 123 |
-
function swpsmtp_init_smtp( $phpmailer ) {
|
| 124 |
-
|
| 125 |
$swpsmtp_options = get_option( 'swpsmtp_options' );
|
| 126 |
-
|
| 127 |
/* Set the mailer type as per config above, this overrides the already called isMail method */
|
| 128 |
$phpmailer->IsSMTP();
|
| 129 |
$from_email = $swpsmtp_options['from_email_field'];
|
|
|
|
| 130 |
$from_name = $swpsmtp_options['from_name_field'];
|
| 131 |
-
$phpmailer->
|
|
|
|
| 132 |
/* Set the SMTPSecure value */
|
| 133 |
if ( $swpsmtp_options['smtp_settings']['type_encryption'] !== 'none' ) {
|
| 134 |
$phpmailer->SMTPSecure = $swpsmtp_options['smtp_settings']['type_encryption'];
|
|
@@ -142,7 +142,7 @@ if ( ! function_exists ( 'swpsmtp_init_smtp' ) ) {
|
|
| 142 |
if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
|
| 143 |
$phpmailer->SMTPAuth = true;
|
| 144 |
$phpmailer->Username = $swpsmtp_options['smtp_settings']['username'];
|
| 145 |
-
$phpmailer->Password =
|
| 146 |
}
|
| 147 |
}
|
| 148 |
}
|
|
@@ -159,7 +159,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 159 |
|
| 160 |
if ( isset( $_POST['swpsmtp_form_submit'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ) ) {
|
| 161 |
/* Update settings */
|
| 162 |
-
$swpsmtp_options['from_name_field'] = isset( $_POST['swpsmtp_from_name'] ) ? $_POST['swpsmtp_from_name'] : '';
|
| 163 |
if( isset( $_POST['swpsmtp_from_email'] ) ){
|
| 164 |
if( is_email( $_POST['swpsmtp_from_email'] ) ){
|
| 165 |
$swpsmtp_options['from_email_field'] = $_POST['swpsmtp_from_email'];
|
|
@@ -169,11 +169,12 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 169 |
}
|
| 170 |
}
|
| 171 |
|
| 172 |
-
$swpsmtp_options['smtp_settings']['host'] = $_POST['swpsmtp_smtp_host'];
|
| 173 |
$swpsmtp_options['smtp_settings']['type_encryption'] = ( isset( $_POST['swpsmtp_smtp_type_encryption'] ) ) ? $_POST['swpsmtp_smtp_type_encryption'] : 'none' ;
|
| 174 |
$swpsmtp_options['smtp_settings']['autentication'] = ( isset( $_POST['swpsmtp_smtp_autentication'] ) ) ? $_POST['swpsmtp_smtp_autentication'] : 'yes' ;
|
| 175 |
-
$swpsmtp_options['smtp_settings']['username'] = $_POST['swpsmtp_smtp_username'];
|
| 176 |
-
|
|
|
|
| 177 |
|
| 178 |
/* Check value from "SMTP port" option */
|
| 179 |
if ( isset( $_POST['swpsmtp_smtp_port'] ) ) {
|
|
@@ -213,7 +214,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 213 |
<div class="swpsmtp-mail wrap" id="swpsmtp-mail">
|
| 214 |
<div id="icon-options-general" class="icon32 icon32-bws"></div>
|
| 215 |
<h2><?php _e( "Easy WP SMTP Settings", 'easy_wp_smtp' ); ?></h2>
|
| 216 |
-
<div class="update-nag">Please visit the <a target="_blank" href="
|
| 217 |
<div class="updated fade" <?php if( empty( $message ) ) echo "style=\"display:none\""; ?>>
|
| 218 |
<p><strong><?php echo $message; ?></strong></p>
|
| 219 |
</div>
|
|
@@ -229,21 +230,21 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 229 |
<tr valign="top">
|
| 230 |
<th scope="row"><?php _e( "From Email Address", 'easy_wp_smtp' ); ?></th>
|
| 231 |
<td>
|
| 232 |
-
<input type="text" name="swpsmtp_from_email" value="<?php echo
|
| 233 |
<span class="swpsmtp_info"><?php _e( "This email address will be used in the 'From' field.", 'easy_wp_smtp' ); ?></span>
|
| 234 |
</td>
|
| 235 |
</tr>
|
| 236 |
<tr valign="top">
|
| 237 |
<th scope="row"><?php _e( "From Name", 'easy_wp_smtp' ); ?></th>
|
| 238 |
<td>
|
| 239 |
-
<input type="text" name="swpsmtp_from_name" value="<?php echo $swpsmtp_options['from_name_field']; ?>"/><br />
|
| 240 |
<span class="swpsmtp_info"><?php _e( "This text will be used in the 'FROM' field", 'easy_wp_smtp' ); ?></span>
|
| 241 |
</td>
|
| 242 |
</tr>
|
| 243 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 244 |
<th><?php _e( 'SMTP Host', 'easy_wp_smtp' ); ?></th>
|
| 245 |
<td>
|
| 246 |
-
<input type='text' name='swpsmtp_smtp_host' value='<?php echo $swpsmtp_options['smtp_settings']['host']; ?>' /><br />
|
| 247 |
<span class="swpsmtp_info"><?php _e( "Your mail server", 'easy_wp_smtp' ); ?></span>
|
| 248 |
</td>
|
| 249 |
</tr>
|
|
@@ -259,12 +260,12 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 259 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 260 |
<th><?php _e( 'SMTP Port', 'easy_wp_smtp' ); ?></th>
|
| 261 |
<td>
|
| 262 |
-
<input type='text' name='swpsmtp_smtp_port' value='<?php echo $swpsmtp_options['smtp_settings']['port']; ?>' /><br />
|
| 263 |
<span class="swpsmtp_info"><?php _e( "The port to your mail server", 'easy_wp_smtp' ); ?></span>
|
| 264 |
</td>
|
| 265 |
</tr>
|
| 266 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 267 |
-
<th><?php _e( 'SMTP
|
| 268 |
<td>
|
| 269 |
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='no' <?php if( 'no' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'No', 'easy_wp_smtp' ); ?></label>
|
| 270 |
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='yes' <?php if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'Yes', 'easy_wp_smtp' ); ?></label><br />
|
|
@@ -274,14 +275,14 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 274 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 275 |
<th><?php _e( 'SMTP username', 'easy_wp_smtp' ); ?></th>
|
| 276 |
<td>
|
| 277 |
-
<input type='text' name='swpsmtp_smtp_username' value='<?php echo $swpsmtp_options['smtp_settings']['username']; ?>' /><br />
|
| 278 |
<span class="swpsmtp_info"><?php _e( "The username to login to your mail server", 'easy_wp_smtp' ); ?></span>
|
| 279 |
</td>
|
| 280 |
</tr>
|
| 281 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 282 |
<th><?php _e( 'SMTP Password', 'easy_wp_smtp' ); ?></th>
|
| 283 |
<td>
|
| 284 |
-
<input type='password' name='swpsmtp_smtp_password' value='<?php echo
|
| 285 |
<span class="swpsmtp_info"><?php _e( "The password to login to your mail server", 'easy_wp_smtp' ); ?></span>
|
| 286 |
</td>
|
| 287 |
</tr>
|
|
@@ -316,7 +317,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 316 |
<tr valign="top">
|
| 317 |
<th scope="row"><?php _e( "Message", 'easy_wp_smtp' ); ?>:</th>
|
| 318 |
<td>
|
| 319 |
-
<textarea name="swpsmtp_message" rows="5"></textarea><br />
|
| 320 |
<span class="swpsmtp_info"><?php _e( "Write your message", 'easy_wp_smtp' ); ?></span>
|
| 321 |
</td>
|
| 322 |
</tr>
|
|
@@ -344,7 +345,7 @@ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
|
|
| 344 |
require_once( ABSPATH . WPINC . '/class-phpmailer.php' );
|
| 345 |
$mail = new PHPMailer();
|
| 346 |
|
| 347 |
-
$from_name = $swpsmtp_options['from_name_field'];
|
| 348 |
$from_email = $swpsmtp_options['from_email_field'];
|
| 349 |
|
| 350 |
$mail->IsSMTP();
|
|
@@ -353,7 +354,7 @@ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
|
|
| 353 |
if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
|
| 354 |
$mail->SMTPAuth = true;
|
| 355 |
$mail->Username = $swpsmtp_options['smtp_settings']['username'];
|
| 356 |
-
$mail->Password =
|
| 357 |
}
|
| 358 |
|
| 359 |
/* Set the SMTPSecure value, if set to none, leave this blank */
|
|
@@ -366,7 +367,7 @@ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
|
|
| 366 |
$mail->Port = $swpsmtp_options['smtp_settings']['port'];
|
| 367 |
$mail->SetFrom( $from_email, $from_name );
|
| 368 |
$mail->isHTML( true );
|
| 369 |
-
$mail->Subject = $subject;
|
| 370 |
$mail->MsgHTML( $message );
|
| 371 |
$mail->AddAddress( $to_email );
|
| 372 |
$mail->SMTPDebug = 0;
|
|
@@ -399,6 +400,27 @@ if ( ! function_exists( 'swpsmtp_send_uninstall' ) ) {
|
|
| 399 |
}
|
| 400 |
}
|
| 401 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 402 |
|
| 403 |
/**
|
| 404 |
* Add all hooks
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Easy WP SMTP
|
| 4 |
+
Version: 1.1.9
|
| 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/
|
| 8 |
Description: Send email via SMTP from your WordPress Blog
|
| 9 |
*/
|
| 10 |
|
| 120 |
* @return void
|
| 121 |
*/
|
| 122 |
if ( ! function_exists ( 'swpsmtp_init_smtp' ) ) {
|
| 123 |
+
function swpsmtp_init_smtp( $phpmailer ) {
|
|
|
|
| 124 |
$swpsmtp_options = get_option( 'swpsmtp_options' );
|
|
|
|
| 125 |
/* Set the mailer type as per config above, this overrides the already called isMail method */
|
| 126 |
$phpmailer->IsSMTP();
|
| 127 |
$from_email = $swpsmtp_options['from_email_field'];
|
| 128 |
+
$phpmailer->From = $from_email;
|
| 129 |
$from_name = $swpsmtp_options['from_name_field'];
|
| 130 |
+
$phpmailer->FromName = $from_name;
|
| 131 |
+
$phpmailer->SetFrom($phpmailer->From, $phpmailer->FromName);
|
| 132 |
/* Set the SMTPSecure value */
|
| 133 |
if ( $swpsmtp_options['smtp_settings']['type_encryption'] !== 'none' ) {
|
| 134 |
$phpmailer->SMTPSecure = $swpsmtp_options['smtp_settings']['type_encryption'];
|
| 142 |
if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
|
| 143 |
$phpmailer->SMTPAuth = true;
|
| 144 |
$phpmailer->Username = $swpsmtp_options['smtp_settings']['username'];
|
| 145 |
+
$phpmailer->Password = swpsmtp_get_password();
|
| 146 |
}
|
| 147 |
}
|
| 148 |
}
|
| 159 |
|
| 160 |
if ( isset( $_POST['swpsmtp_form_submit'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ) ) {
|
| 161 |
/* Update settings */
|
| 162 |
+
$swpsmtp_options['from_name_field'] = isset( $_POST['swpsmtp_from_name'] ) ? sanitize_text_field(wp_unslash($_POST['swpsmtp_from_name'])) : '';
|
| 163 |
if( isset( $_POST['swpsmtp_from_email'] ) ){
|
| 164 |
if( is_email( $_POST['swpsmtp_from_email'] ) ){
|
| 165 |
$swpsmtp_options['from_email_field'] = $_POST['swpsmtp_from_email'];
|
| 169 |
}
|
| 170 |
}
|
| 171 |
|
| 172 |
+
$swpsmtp_options['smtp_settings']['host'] = sanitize_text_field($_POST['swpsmtp_smtp_host']);
|
| 173 |
$swpsmtp_options['smtp_settings']['type_encryption'] = ( isset( $_POST['swpsmtp_smtp_type_encryption'] ) ) ? $_POST['swpsmtp_smtp_type_encryption'] : 'none' ;
|
| 174 |
$swpsmtp_options['smtp_settings']['autentication'] = ( isset( $_POST['swpsmtp_smtp_autentication'] ) ) ? $_POST['swpsmtp_smtp_autentication'] : 'yes' ;
|
| 175 |
+
$swpsmtp_options['smtp_settings']['username'] = sanitize_text_field($_POST['swpsmtp_smtp_username']);
|
| 176 |
+
$smtp_password = trim($_POST['swpsmtp_smtp_password']);
|
| 177 |
+
$swpsmtp_options['smtp_settings']['password'] = base64_encode($smtp_password);
|
| 178 |
|
| 179 |
/* Check value from "SMTP port" option */
|
| 180 |
if ( isset( $_POST['swpsmtp_smtp_port'] ) ) {
|
| 214 |
<div class="swpsmtp-mail wrap" id="swpsmtp-mail">
|
| 215 |
<div id="icon-options-general" class="icon32 icon32-bws"></div>
|
| 216 |
<h2><?php _e( "Easy WP SMTP Settings", 'easy_wp_smtp' ); ?></h2>
|
| 217 |
+
<div class="update-nag">Please visit the <a target="_blank" href="https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197">Easy WP SMTP</a> documentation page for usage instructions.</div>
|
| 218 |
<div class="updated fade" <?php if( empty( $message ) ) echo "style=\"display:none\""; ?>>
|
| 219 |
<p><strong><?php echo $message; ?></strong></p>
|
| 220 |
</div>
|
| 230 |
<tr valign="top">
|
| 231 |
<th scope="row"><?php _e( "From Email Address", 'easy_wp_smtp' ); ?></th>
|
| 232 |
<td>
|
| 233 |
+
<input type="text" name="swpsmtp_from_email" value="<?php echo esc_attr( $swpsmtp_options['from_email_field'] ); ?>"/><br />
|
| 234 |
<span class="swpsmtp_info"><?php _e( "This email address will be used in the 'From' field.", 'easy_wp_smtp' ); ?></span>
|
| 235 |
</td>
|
| 236 |
</tr>
|
| 237 |
<tr valign="top">
|
| 238 |
<th scope="row"><?php _e( "From Name", 'easy_wp_smtp' ); ?></th>
|
| 239 |
<td>
|
| 240 |
+
<input type="text" name="swpsmtp_from_name" value="<?php echo esc_attr($swpsmtp_options['from_name_field']); ?>"/><br />
|
| 241 |
<span class="swpsmtp_info"><?php _e( "This text will be used in the 'FROM' field", 'easy_wp_smtp' ); ?></span>
|
| 242 |
</td>
|
| 243 |
</tr>
|
| 244 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 245 |
<th><?php _e( 'SMTP Host', 'easy_wp_smtp' ); ?></th>
|
| 246 |
<td>
|
| 247 |
+
<input type='text' name='swpsmtp_smtp_host' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['host']); ?>' /><br />
|
| 248 |
<span class="swpsmtp_info"><?php _e( "Your mail server", 'easy_wp_smtp' ); ?></span>
|
| 249 |
</td>
|
| 250 |
</tr>
|
| 260 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 261 |
<th><?php _e( 'SMTP Port', 'easy_wp_smtp' ); ?></th>
|
| 262 |
<td>
|
| 263 |
+
<input type='text' name='swpsmtp_smtp_port' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['port']); ?>' /><br />
|
| 264 |
<span class="swpsmtp_info"><?php _e( "The port to your mail server", 'easy_wp_smtp' ); ?></span>
|
| 265 |
</td>
|
| 266 |
</tr>
|
| 267 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 268 |
+
<th><?php _e( 'SMTP Authentication', 'easy_wp_smtp' ); ?></th>
|
| 269 |
<td>
|
| 270 |
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='no' <?php if( 'no' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'No', 'easy_wp_smtp' ); ?></label>
|
| 271 |
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='yes' <?php if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'Yes', 'easy_wp_smtp' ); ?></label><br />
|
| 275 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 276 |
<th><?php _e( 'SMTP username', 'easy_wp_smtp' ); ?></th>
|
| 277 |
<td>
|
| 278 |
+
<input type='text' name='swpsmtp_smtp_username' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['username']); ?>' /><br />
|
| 279 |
<span class="swpsmtp_info"><?php _e( "The username to login to your mail server", 'easy_wp_smtp' ); ?></span>
|
| 280 |
</td>
|
| 281 |
</tr>
|
| 282 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 283 |
<th><?php _e( 'SMTP Password', 'easy_wp_smtp' ); ?></th>
|
| 284 |
<td>
|
| 285 |
+
<input type='password' name='swpsmtp_smtp_password' value='<?php echo swpsmtp_get_password(); ?>' /><br />
|
| 286 |
<span class="swpsmtp_info"><?php _e( "The password to login to your mail server", 'easy_wp_smtp' ); ?></span>
|
| 287 |
</td>
|
| 288 |
</tr>
|
| 317 |
<tr valign="top">
|
| 318 |
<th scope="row"><?php _e( "Message", 'easy_wp_smtp' ); ?>:</th>
|
| 319 |
<td>
|
| 320 |
+
<textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"></textarea><br />
|
| 321 |
<span class="swpsmtp_info"><?php _e( "Write your message", 'easy_wp_smtp' ); ?></span>
|
| 322 |
</td>
|
| 323 |
</tr>
|
| 345 |
require_once( ABSPATH . WPINC . '/class-phpmailer.php' );
|
| 346 |
$mail = new PHPMailer();
|
| 347 |
|
| 348 |
+
$from_name = utf8_decode($swpsmtp_options['from_name_field']);
|
| 349 |
$from_email = $swpsmtp_options['from_email_field'];
|
| 350 |
|
| 351 |
$mail->IsSMTP();
|
| 354 |
if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
|
| 355 |
$mail->SMTPAuth = true;
|
| 356 |
$mail->Username = $swpsmtp_options['smtp_settings']['username'];
|
| 357 |
+
$mail->Password = swpsmtp_get_password();
|
| 358 |
}
|
| 359 |
|
| 360 |
/* Set the SMTPSecure value, if set to none, leave this blank */
|
| 367 |
$mail->Port = $swpsmtp_options['smtp_settings']['port'];
|
| 368 |
$mail->SetFrom( $from_email, $from_name );
|
| 369 |
$mail->isHTML( true );
|
| 370 |
+
$mail->Subject = utf8_decode($subject);
|
| 371 |
$mail->MsgHTML( $message );
|
| 372 |
$mail->AddAddress( $to_email );
|
| 373 |
$mail->SMTPDebug = 0;
|
| 400 |
}
|
| 401 |
}
|
| 402 |
|
| 403 |
+
if ( ! function_exists( 'swpsmtp_get_password' ) ) {
|
| 404 |
+
function swpsmtp_get_password() {
|
| 405 |
+
$swpsmtp_options = get_option( 'swpsmtp_options' );
|
| 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;
|
| 412 |
+
}
|
| 413 |
+
else{
|
| 414 |
+
$password = base64_decode($temp_password);
|
| 415 |
+
}
|
| 416 |
+
}
|
| 417 |
+
else{ //not encoded
|
| 418 |
+
$password = $temp_password;
|
| 419 |
+
}
|
| 420 |
+
return $password;
|
| 421 |
+
}
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
|
| 425 |
/**
|
| 426 |
* Add all hooks
|
readme.txt
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
=== Easy WP SMTP ===
|
| 2 |
Contributors: wpecommerce
|
| 3 |
-
Donate link:
|
| 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
|
| 7 |
-
Stable tag: 1.1.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -38,7 +38,7 @@ The general settings section consists of the following options
|
|
| 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](
|
| 42 |
|
| 43 |
**b)** Easy WP SMTP Testing & Debugging Settings
|
| 44 |
|
|
@@ -66,7 +66,7 @@ Yes.
|
|
| 66 |
|
| 67 |
== Screenshots ==
|
| 68 |
|
| 69 |
-
For screenshots please visit the [Easy WordPress SMTP](
|
| 70 |
|
| 71 |
== Other Notes ==
|
| 72 |
|
|
@@ -75,6 +75,49 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
|
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
= 1.1.0 =
|
| 79 |
|
| 80 |
* "The settings have been changed" notice will only be displayed if a input field is changed
|
| 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: 3.0
|
| 6 |
+
Tested up to: 4.3
|
| 7 |
+
Stable tag: 1.1.9
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 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](https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
|
| 42 |
|
| 43 |
**b)** Easy WP SMTP Testing & Debugging Settings
|
| 44 |
|
| 66 |
|
| 67 |
== Screenshots ==
|
| 68 |
|
| 69 |
+
For screenshots please visit the [Easy WordPress SMTP](https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
|
| 70 |
|
| 71 |
== Other Notes ==
|
| 72 |
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
| 78 |
+
= 1.1.9 =
|
| 79 |
+
|
| 80 |
+
* Easy SMTP is now compatible with WordPress 4.3
|
| 81 |
+
|
| 82 |
+
= 1.1.8 =
|
| 83 |
+
|
| 84 |
+
* Easy SMTP now removes slashes from the "From Name" field.
|
| 85 |
+
|
| 86 |
+
= 1.1.7 =
|
| 87 |
+
|
| 88 |
+
* Made some improvements to the encoding option.
|
| 89 |
+
|
| 90 |
+
= 1.1.7 =
|
| 91 |
+
|
| 92 |
+
* Made some improvements to the encoding option.
|
| 93 |
+
|
| 94 |
+
= 1.1.6 =
|
| 95 |
+
|
| 96 |
+
* Fixed some character encoding issues of test email functionality
|
| 97 |
+
* Plugin will now force the from name and email address saved in the settings (just like version 1.1.1)
|
| 98 |
+
|
| 99 |
+
= 1.1.5 =
|
| 100 |
+
|
| 101 |
+
* Fixed a typo in the plugin settings
|
| 102 |
+
* SMTP Password is now encoded before saving it to the wp_options table
|
| 103 |
+
|
| 104 |
+
= 1.1.4 =
|
| 105 |
+
|
| 106 |
+
* Plugin will now also override the default from name and email (WordPress)
|
| 107 |
+
|
| 108 |
+
= 1.1.3 =
|
| 109 |
+
|
| 110 |
+
* Removed "ReplyTo" attribute since it was causing compatibility issues with some form plugins
|
| 111 |
+
|
| 112 |
+
= 1.1.2 =
|
| 113 |
+
|
| 114 |
+
* "ReplyTo" attribute will now be set when sending an email
|
| 115 |
+
* The plugin will only override "From Email Address" and "Name" if they are not present
|
| 116 |
+
|
| 117 |
+
= 1.1.1 =
|
| 118 |
+
|
| 119 |
+
* Fixed an issue where the plugin CSS was affecting other input fields on the admin side.
|
| 120 |
+
|
| 121 |
= 1.1.0 =
|
| 122 |
|
| 123 |
* "The settings have been changed" notice will only be displayed if a input field is changed
|
