Post SMTP Mailer/Email Log - Version 1.9.4

Version Description

  • 2018-08-03 The most stupid idea ever remove (auto security select)
Download this release

Release Info

Developer yehudah
Plugin Icon 128x128 Post SMTP Mailer/Email Log
Version 1.9.4
Comparing to
See all releases

Code changes from version 1.9.3 to 1.9.4

Postman/PostmanOptions.php CHANGED
@@ -178,6 +178,10 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
178
  } else { return self::DEFAULT_MAIL_LOG_ENABLED; }
179
  }
180
  public function getRunMode() {
 
 
 
 
181
  if ( isset( $this->options [ self::RUN_MODE ] ) ) {
182
  return $this->options [ self::RUN_MODE ];
183
  } else { return self::DEFAULT_RUN_MODE; }
@@ -260,21 +264,11 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
260
  return $this->options [ PostmanOptions::AUTHENTICATION_TYPE ]; }
261
  }
262
  public function getEncryptionType() {
263
- $port = $this->getPort();
264
- switch ($port):
265
- case 465:
266
- return 'ssl';
267
- break;
268
- case 587:
269
- return 'tls';
270
- break;
271
- case 2525:
272
- return 'tls';
273
- break;
274
- default:
275
- return isset( $this->options [ PostmanOptions::SECURITY_TYPE ] ) ? $this->options [ PostmanOptions::SECURITY_TYPE ] : 'none';
276
- endswitch;
277
  }
 
278
  public function getUsername() {
279
  if ( defined( 'POST_SMTP_AUTH_USERNAME' ) ) {
280
  return POST_SMTP_AUTH_USERNAME;
@@ -285,24 +279,35 @@ if ( ! class_exists( 'PostmanOptions' ) ) {
285
  }
286
  }
287
  public function getPassword() {
288
-
289
- if ( defined( 'POST_SMTP_AUTH_PASSWORD' ) ) {
290
- return POST_SMTP_AUTH_PASSWORD;
291
- }
292
 
293
  if ( isset( $this->options [ PostmanOptions::BASIC_AUTH_PASSWORD ] ) ) {
294
  return base64_decode( $this->options [ PostmanOptions::BASIC_AUTH_PASSWORD ] );
295
  }
296
  }
297
  public function getMandrillApiKey() {
 
 
 
 
298
  if ( isset( $this->options [ PostmanOptions::MANDRILL_API_KEY ] ) ) {
299
  return base64_decode( $this->options [ PostmanOptions::MANDRILL_API_KEY ] ); }
300
  }
301
  public function getSendGridApiKey() {
 
 
 
 
302
  if ( isset( $this->options [ PostmanOptions::SENDGRID_API_KEY ] ) ) {
303
  return base64_decode( $this->options [ PostmanOptions::SENDGRID_API_KEY ] ); }
304
  }
305
  public function getMailgunApiKey() {
 
 
 
 
306
  if ( isset( $this->options [ PostmanOptions::MAILGUN_API_KEY ] ) ) {
307
  return base64_decode( $this->options [ PostmanOptions::MAILGUN_API_KEY ] ); }
308
  }
178
  } else { return self::DEFAULT_MAIL_LOG_ENABLED; }
179
  }
180
  public function getRunMode() {
181
+ if ( defined( 'POST_SMTP_RUN_MODE' ) ) {
182
+ return POST_SMTP_RUN_MODE;
183
+ }
184
+
185
  if ( isset( $this->options [ self::RUN_MODE ] ) ) {
186
  return $this->options [ self::RUN_MODE ];
187
  } else { return self::DEFAULT_RUN_MODE; }
264
  return $this->options [ PostmanOptions::AUTHENTICATION_TYPE ]; }
265
  }
266
  public function getEncryptionType() {
267
+ if ( isset( $this->options [ PostmanOptions::SECURITY_TYPE ] ) ) {
268
+ return $this->options [ PostmanOptions::SECURITY_TYPE ];
269
+ }
 
 
 
 
 
 
 
 
 
 
 
270
  }
271
+
272
  public function getUsername() {
273
  if ( defined( 'POST_SMTP_AUTH_USERNAME' ) ) {
274
  return POST_SMTP_AUTH_USERNAME;
279
  }
280
  }
281
  public function getPassword() {
282
+ if ( defined( 'POST_SMTP_AUTH_PASSWORD' ) ) {
283
+ return POST_SMTP_AUTH_PASSWORD;
284
+ }
 
285
 
286
  if ( isset( $this->options [ PostmanOptions::BASIC_AUTH_PASSWORD ] ) ) {
287
  return base64_decode( $this->options [ PostmanOptions::BASIC_AUTH_PASSWORD ] );
288
  }
289
  }
290
  public function getMandrillApiKey() {
291
+ if ( defined( 'POST_SMTP_API_KEY' ) ) {
292
+ return POST_SMTP_API_KEY;
293
+ }
294
+
295
  if ( isset( $this->options [ PostmanOptions::MANDRILL_API_KEY ] ) ) {
296
  return base64_decode( $this->options [ PostmanOptions::MANDRILL_API_KEY ] ); }
297
  }
298
  public function getSendGridApiKey() {
299
+ if ( defined( 'POST_SMTP_API_KEY' ) ) {
300
+ return POST_SMTP_API_KEY;
301
+ }
302
+
303
  if ( isset( $this->options [ PostmanOptions::SENDGRID_API_KEY ] ) ) {
304
  return base64_decode( $this->options [ PostmanOptions::SENDGRID_API_KEY ] ); }
305
  }
306
  public function getMailgunApiKey() {
307
+ if ( defined( 'POST_SMTP_API_KEY' ) ) {
308
+ return POST_SMTP_API_KEY;
309
+ }
310
+
311
  if ( isset( $this->options [ PostmanOptions::MAILGUN_API_KEY ] ) ) {
312
  return base64_decode( $this->options [ PostmanOptions::MAILGUN_API_KEY ] ); }
313
  }
Postman/PostmanViewController.php CHANGED
@@ -307,7 +307,7 @@ if ( ! class_exists( 'PostmanViewController' ) ) {
307
  echo '
308
  <div class="updated settings-error notice is-dismissible">
309
  <p>
310
- <strong>Version ' . $version . ' released with better compability for secure ports:</strong> <a target="_blank" href="https://postmansmtp.com/post-smtp-1-9-0-better-support-for-secure-delivery">Read Here</a>
311
  </p>
312
  <button style="z-index: 100;" data-version="'. $version . '" data-security="' . wp_create_nonce('postsmtp') .'" type="button" class="notice-dismiss postman-release-message">
313
  <span class="screen-reader-text">Dismiss this notice.</span>
307
  echo '
308
  <div class="updated settings-error notice is-dismissible">
309
  <p>
310
+ <strong>Version ' . $version . ' I do mistakes too - A must read:</strong> <a target="_blank" href="https://postmansmtp.com/post-smtp-1-9-4-im-only-human/">Read Here</a>
311
  </p>
312
  <button style="z-index: 100;" data-version="'. $version . '" data-security="' . wp_create_nonce('postsmtp') .'" type="button" class="notice-dismiss postman-release-message">
313
  <span class="screen-reader-text">Dismiss this notice.</span>
postman-smtp.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Post SMTP
5
  * Plugin URI: https://wordpress.org/plugins/post-smtp/
6
  * Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes!
7
- * Version: 1.9.3
8
  * Author: Jason Hendriks, Yehuda Hassine
9
  * Text Domain: post-smtp
10
  * Author URI: https://postmansmtp.com
@@ -123,5 +123,5 @@ function post_start( $startingMemory ) {
123
  */
124
  function post_setupPostman() {
125
  require_once 'Postman/Postman.php';
126
- $kevinCostner = new Postman( __FILE__, '1.9.3' );
127
  }
4
  * Plugin Name: Post SMTP
5
  * Plugin URI: https://wordpress.org/plugins/post-smtp/
6
  * Description: Email not reliable? Post SMTP is the first and only WordPress SMTP plugin to implement OAuth 2.0 for Gmail, Hotmail and Yahoo Mail. Setup is a breeze with the Configuration Wizard and integrated Port Tester. Enjoy worry-free delivery even if your password changes!
7
+ * Version: 1.9.4
8
  * Author: Jason Hendriks, Yehuda Hassine
9
  * Text Domain: post-smtp
10
  * Author URI: https://postmansmtp.com
123
  */
124
  function post_setupPostman() {
125
  require_once 'Postman/Postman.php';
126
+ $kevinCostner = new Postman( __FILE__, '1.9.4' );
127
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: yehudah, abdullahramzan ,jasonhendriks
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@myinbox.in&item_name=Donation+for+PostSMTP
4
  Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
5
  Requires at least: 3.9
6
- Tested up to: 4.9.5
7
- Stable tag: 1.9.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,8 +12,8 @@ Send, log and troubleshoot your Outgoing Email easily. Supports everything: SMTP
12
 
13
  == Description ==
14
 
15
- = Version 1.9.3 released =
16
- Better secure delivery and external auth credentials (wp-config). [Read the detailes here](https://postmansmtp.com/post-smtp-1-9-0-better-support-for-secure-delivery/)
17
 
18
  = WordPress Mail SMTP Plugin =
19
 
@@ -296,6 +296,9 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
296
 
297
 
298
  == Changelog ==
 
 
 
299
  = 1.9.3 - 2018-07-26
300
  Removed auto configure for port 25 (can be TLS)
301
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehuda@myinbox.in&item_name=Donation+for+PostSMTP
4
  Tags: postman smtp, postman, smtp, email, mail, mailer, email log, oauth2, gmail, google apps, hotmail, yahoo, mandrill api, sendgrid api, elastic email, office365, mailgun
5
  Requires at least: 3.9
6
+ Tested up to: 4.9.7
7
+ Stable tag: 1.9.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ = Version 1.9.4 released - A MUST READ FOR EXISTING USERS =
16
+ I tryed to do stuff simple and I just the did opposite. [Read the detailes here](https://postmansmtp.com/post-smtp-1-9-4-im-only-human/)
17
 
18
  = WordPress Mail SMTP Plugin =
19
 
296
 
297
 
298
  == Changelog ==
299
+ = 1.9.4 - 2018-08-03
300
+ The most stupid idea ever remove (auto security select)
301
+
302
  = 1.9.3 - 2018-07-26
303
  Removed auto configure for port 25 (can be TLS)
304