WP Mail Bank: WordPress SMTP Plugin & Email Logs - Version 1.38

Version Description

Download this release

Release Info

Developer contact-banker
Plugin Icon 128x128 WP Mail Bank: WordPress SMTP Plugin & Email Logs
Version 1.38
Comparing to
See all releases

Code changes from version 1.37 to 1.38

Files changed (2) hide show
  1. readme.txt +1 -1
  2. wp-mail-bank.php +10 -4
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: contact-banker, Gallery-Bank
3
  Tags: admin, ajax, email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, plugin, Post, posts, privacy, security, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer
4
  Requires at least: 2.7
5
  Tested up to: 4.4.2
6
- Stable tag: 1.37
7
 
8
  WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
9
 
3
  Tags: admin, ajax, email, gmail, mail, mail smtp, mailer, outgoing mail, phpmailer, plugin, Post, posts, privacy, security, sendmail, smtp, ssl, tls, wordpress smtp, wp smtp, wp-phpmailer, wp_mail, wp mail, mailer
4
  Requires at least: 2.7
5
  Tested up to: 4.4.2
6
+ Stable tag: 1.38
7
 
8
  WP Mail Bank reconfigures the PHP Mailer and make it more enhanced with advanced SMTP settings options.
9
 
wp-mail-bank.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Wp Mail Bank
4
  Plugin URI: http://tech-banker.com
5
  Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
- Version: 1.37
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
@@ -65,9 +65,15 @@ function wp_mail_bank_configure($phpmailer)
65
  );
66
  $mail_type = $data->mailer_type;
67
  $phpmailer->Mailer = $data->mailer_type == 0 ? "smtp" : "mail";
68
- $phpmailer->FromName = stripslashes(htmlspecialchars_decode($data->from_name, ENT_QUOTES));
69
- $phpmailer->From = $data->from_email;
70
- $phpmailer->Sender = $data->return_path == 0 ? $data->return_email : $data->from_email;
 
 
 
 
 
 
71
  $phpmailer->WordWrap = $data->word_wrap;
72
  $phpmailer->SMTPOptions = array
73
  (
4
  Plugin URI: http://tech-banker.com
5
  Description: WP Mail Bank reconfigures the wp_mail() function and make it more enhanced.
6
  Author: Tech Banker
7
+ Version: 1.38
8
  Author URI: http://tech-banker.com
9
  License: GPLv3 or later
10
  */
65
  );
66
  $mail_type = $data->mailer_type;
67
  $phpmailer->Mailer = $data->mailer_type == 0 ? "smtp" : "mail";
68
+ if(!is_string($phpmailer->FromName) || $phpmailer->FromName == '')
69
+ {
70
+ $phpmailer->FromName = stripslashes(htmlspecialchars_decode($data->from_name, ENT_QUOTES));
71
+ }
72
+ if(!is_string($phpmailer->From) || $phpmailer->From == '')
73
+ {
74
+ $phpmailer->From = $data->from_email;
75
+ }
76
+ $phpmailer->Sender = $data->return_path == 0 ? $data->return_email : $phpmailer->From;
77
  $phpmailer->WordWrap = $data->word_wrap;
78
  $phpmailer->SMTPOptions = array
79
  (