Post SMTP Mailer/Email Log - Version 2.0.17

Version Description

  • 2020-01-17
  • New: Plugin Extensions
Download this release

Release Info

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

Code changes from version 2.0.16 to 2.0.17

Postman/Extensions/License/PostmanLicenseHandler.php CHANGED
@@ -92,7 +92,7 @@ class PostmanLicenseHandler {
92
  // Display notices to admins
93
  add_action( 'admin_notices', array( $this, 'notices' ) );
94
 
95
- add_action( 'in_plugin_update_message-' . plugin_basename( $this->file ), array( $this, 'plugin_row_license_missing' ), 10, 2 );
96
  }
97
 
98
  /**
@@ -344,7 +344,7 @@ class PostmanLicenseHandler {
344
 
345
  if ( $interval->days == 0 ) {
346
  add_action( 'admin_notices', function () use ( $license_data ) {
347
- echo $this->item_name . ' license expire today at: ' . $license_data->expires;
348
  });
349
 
350
  return;
@@ -353,7 +353,7 @@ class PostmanLicenseHandler {
353
 
354
  if ( $license_data->activations_left == 0 ) {
355
  add_action( 'admin_notices', function () use ( $license_data ) {
356
- echo $this->item_name . ' has no activations';
357
  });
358
 
359
  return;
92
  // Display notices to admins
93
  add_action( 'admin_notices', array( $this, 'notices' ) );
94
 
95
+ //add_action( 'in_plugin_update_message-' . plugin_basename( $this->file ), array( $this, 'plugin_row_license_missing' ), 10, 2 );
96
  }
97
 
98
  /**
344
 
345
  if ( $interval->days == 0 ) {
346
  add_action( 'admin_notices', function () use ( $license_data ) {
347
+ //echo $this->item_name . ' license expire today at: ' . $license_data->expires;
348
  });
349
 
350
  return;
353
 
354
  if ( $license_data->activations_left == 0 ) {
355
  add_action( 'admin_notices', function () use ( $license_data ) {
356
+ //echo $this->item_name . ' has no activations';
357
  });
358
 
359
  return;
Postman/Postman.php CHANGED
@@ -23,9 +23,9 @@ class Postman {
23
  const MANAGE_POSTMAN_CAPABILITY_LOGS = 'manage_postman_logs';
24
 
25
  /**
26
- * Use the text domain directly instead of this constant, as it
27
  * causes issues with https://translate.wordpress.org.
28
- *
29
  * @deprecated
30
  * @see https://github.com/yehudah/Post-SMTP/issues/1#issuecomment-421940923
31
  */
@@ -97,7 +97,7 @@ class Postman {
97
  }
98
 
99
  // register the email transports
100
-
101
  // store an instance of the WpMailBinder
102
  $this->wpMailBinder = PostmanWpMailBinder::getInstance();
103
 
@@ -187,11 +187,11 @@ class Postman {
187
  */
188
  public function on_plugins_loaded() {
189
 
190
- PostmanLicenseManager::get_instance()->init();
191
-
192
  // register the email transports
193
  $this->registerTransports( $this->rootPluginFilenameAndPath );
194
 
 
 
195
  // load the text domain
196
  $this->loadTextDomain();
197
 
@@ -415,7 +415,7 @@ class Postman {
415
  }
416
  $message .= (sprintf( ' %s | %s', $goToEmailLog, $goToSettings ));
417
  $message .= '<input type="hidden" name="security" class="security" value="' . wp_create_nonce('postsmtp') . '">';
418
-
419
  $hide = get_option('postman_release_version' );
420
 
421
  if ( $msg['error'] == true && ! $hide ) {
23
  const MANAGE_POSTMAN_CAPABILITY_LOGS = 'manage_postman_logs';
24
 
25
  /**
26
+ * Use the text domain directly instead of this constant, as it
27
  * causes issues with https://translate.wordpress.org.
28
+ *
29
  * @deprecated
30
  * @see https://github.com/yehudah/Post-SMTP/issues/1#issuecomment-421940923
31
  */
97
  }
98
 
99
  // register the email transports
100
+
101
  // store an instance of the WpMailBinder
102
  $this->wpMailBinder = PostmanWpMailBinder::getInstance();
103
 
187
  */
188
  public function on_plugins_loaded() {
189
 
 
 
190
  // register the email transports
191
  $this->registerTransports( $this->rootPluginFilenameAndPath );
192
 
193
+ PostmanLicenseManager::get_instance()->init();
194
+
195
  // load the text domain
196
  $this->loadTextDomain();
197
 
415
  }
416
  $message .= (sprintf( ' %s | %s', $goToEmailLog, $goToSettings ));
417
  $message .= '<input type="hidden" name="security" class="security" value="' . wp_create_nonce('postsmtp') . '">';
418
+
419
  $hide = get_option('postman_release_version' );
420
 
421
  if ( $msg['error'] == true && ! $hide ) {
Postman/PostmanViewController.php CHANGED
@@ -336,13 +336,13 @@ if ( ! class_exists( 'PostmanViewController' ) ) {
336
  echo '<div class="twitter-wrap">';
337
  print '<div id="postman-main-menu" class="welcome-panel">';
338
  print '<div class="welcome-panel-content">';
339
- print '<div class="welcome-panel-column-container">';
340
- print '<div class="welcome-panel-column">';
341
  printf( '<h4>%s</h4>', __( 'Configuration', 'post-smtp' ) );
342
  printf( '<a class="button button-primary button-hero" href="%s">%s</a>', $this->getPageUrl( PostmanConfigurationController::CONFIGURATION_WIZARD_SLUG ), __( 'Start the Wizard', 'post-smtp' ) );
343
  printf( '<p class="">%s <a href="%s" class="configure_manually">%s</a></p>', __( 'or', 'post-smtp' ), $this->getPageUrl( PostmanConfigurationController::CONFIGURATION_SLUG ), __( 'Show All Settings', 'post-smtp' ) );
344
  print '</div>';
345
- print '<div class="welcome-panel-column">';
346
  printf( '<h4>%s</h4>', _x( 'Actions', 'Main Menu', 'post-smtp' ) );
347
  print '<ul>';
348
 
@@ -372,15 +372,25 @@ if ( ! class_exists( 'PostmanViewController' ) ) {
372
  printf( $purgeLinkPattern, $this->getPageUrl( PostmanAdminController::MANAGE_OPTIONS_PAGE_SLUG ), sprintf( '%s', $importExportReset ) );
373
  print '</ul>';
374
  print '</div>';
375
- print '<div class="welcome-panel-column welcome-panel-last">';
 
 
 
 
 
 
 
 
 
 
376
  printf( '<h4>%s</h4>', _x( 'Troubleshooting', 'Main Menu', 'post-smtp' ) );
377
  print '<ul>';
378
  printf( '<li><a href="%s" class="welcome-icon run-port-test">%s</a></li>', $this->getPageUrl( PostmanConnectivityTestController::PORT_TEST_SLUG ), __( 'Connectivity Test', 'post-smtp' ) );
379
  printf( '<li><a href="%s" class="welcome-icon run-port-test">%s</a></li>', $this->getPageUrl( PostmanDiagnosticTestController::DIAGNOSTICS_SLUG ), __( 'Diagnostic Test', 'post-smtp' ) );
380
  printf( '<li><a href="%s" data-security="%s" class="welcome-icon release-lock-file">%s</a></li>', '#', wp_create_nonce( "postman" ), __( 'Release Lock File Error', 'post-smtp' ) );
381
  printf( '<li><a href="https://wordpress.org/support/plugin/post-smtp/" class="welcome-icon postman_support">%s</a></li>', __( 'Online Support', 'post-smtp' ) );
382
- printf( '<li><a target="blank" class="align-middle" href="https://postmansmtp.com/category/guides/" class="welcome-icon postman_guides">%s</a></li>', __( 'Guides', 'post-smtp' ) );
383
- printf( '<li><img class="align-middle" src="' . plugins_url( 'style/images/new.gif', dirname( __DIR__ ) . '/postman-smtp.php' ) . '"><a target="blank" class="align-middle" href="https://www.facebook.com/groups/post.smtp" class="welcome-icon postman_guides">%s</a></li>', __( 'Facebook Group', 'post-smtp' ) );
384
  print '</ul></div></div></div></div>';
385
  ?>
386
  </div>
336
  echo '<div class="twitter-wrap">';
337
  print '<div id="postman-main-menu" class="welcome-panel">';
338
  print '<div class="welcome-panel-content">';
339
+ print '<div class="welcome-panel-column-container" style="display: flex; flex-wrap: wrap; justify-content: space-around; align-items: flex-start;">';
340
+ print '<div class="ps-welcome-panel-column">';
341
  printf( '<h4>%s</h4>', __( 'Configuration', 'post-smtp' ) );
342
  printf( '<a class="button button-primary button-hero" href="%s">%s</a>', $this->getPageUrl( PostmanConfigurationController::CONFIGURATION_WIZARD_SLUG ), __( 'Start the Wizard', 'post-smtp' ) );
343
  printf( '<p class="">%s <a href="%s" class="configure_manually">%s</a></p>', __( 'or', 'post-smtp' ), $this->getPageUrl( PostmanConfigurationController::CONFIGURATION_SLUG ), __( 'Show All Settings', 'post-smtp' ) );
344
  print '</div>';
345
+ print '<div class="ps-welcome-panel-column">';
346
  printf( '<h4>%s</h4>', _x( 'Actions', 'Main Menu', 'post-smtp' ) );
347
  print '<ul>';
348
 
372
  printf( $purgeLinkPattern, $this->getPageUrl( PostmanAdminController::MANAGE_OPTIONS_PAGE_SLUG ), sprintf( '%s', $importExportReset ) );
373
  print '</ul>';
374
  print '</div>';
375
+ ?>
376
+
377
+ <div class="ps-welcome-panel-column">
378
+ <h4><img class="align-middle" src="<?php echo plugins_url( 'style/images/new.gif', dirname( __DIR__ ) . '/postman-smtp.php' ); ?>"><a style="color: black;" target="_blank" href="https://postmansmtp.com/extensions/">Extensions</a></h4>
379
+ <ul>
380
+ <li><a target="_blank" href="https://postmansmtp.com/extensions/office-365-for-post-smtp-extension/">Office 365 API</a></li>
381
+ </ul>
382
+ </div>
383
+
384
+ <?php
385
+ print '<div class="ps-welcome-panel-column welcome-panel-last">';
386
  printf( '<h4>%s</h4>', _x( 'Troubleshooting', 'Main Menu', 'post-smtp' ) );
387
  print '<ul>';
388
  printf( '<li><a href="%s" class="welcome-icon run-port-test">%s</a></li>', $this->getPageUrl( PostmanConnectivityTestController::PORT_TEST_SLUG ), __( 'Connectivity Test', 'post-smtp' ) );
389
  printf( '<li><a href="%s" class="welcome-icon run-port-test">%s</a></li>', $this->getPageUrl( PostmanDiagnosticTestController::DIAGNOSTICS_SLUG ), __( 'Diagnostic Test', 'post-smtp' ) );
390
  printf( '<li><a href="%s" data-security="%s" class="welcome-icon release-lock-file">%s</a></li>', '#', wp_create_nonce( "postman" ), __( 'Release Lock File Error', 'post-smtp' ) );
391
  printf( '<li><a href="https://wordpress.org/support/plugin/post-smtp/" class="welcome-icon postman_support">%s</a></li>', __( 'Online Support', 'post-smtp' ) );
392
+ printf( '<li><a target="blank" class="align-middle" href="https://www.facebook.com/groups/post.smtp" class="welcome-icon postman_guides">%s</a></li>', __( 'Facebook Group', 'post-smtp' ) );
393
+ printf( '<li><a target="blank" class="align-middle" href="https://postmansmtp.com/category/guides/" class="welcome-icon postman_guides">%s</a></li>', __( 'Guides', 'post-smtp' ) );
394
  print '</ul></div></div></div></div>';
395
  ?>
396
  </div>
postman-smtp.php CHANGED
@@ -6,7 +6,7 @@ if ( ! defined( 'ABSPATH' ) ) {
6
  * Plugin Name: Post SMTP
7
  * Plugin URI: https://wordpress.org/plugins/post-smtp/
8
  * 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!
9
- * Version: 2.0.16
10
  * Author: Yehuda Hassine
11
  * Text Domain: post-smtp
12
  * Author URI: https://postmansmtp.com
@@ -35,10 +35,10 @@ if ( ! defined( 'ABSPATH' ) ) {
35
  define( 'POST_SMTP_BASE', __FILE__ );
36
  define( 'POST_SMTP_PATH', __DIR__ );
37
  define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
38
- define( 'POST_SMTP_VER', '2.0.16' );
39
  define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
40
- define( 'POST_SMTP_RELEASE_MESSAGE', "I have released a new Google Analytics AIO plugin, if you liked it please leave a review." );
41
- define( 'POST_SMTP_RELEASE_URL', 'https://wordpress.org/plugins/metrics-query/' );
42
 
43
  $postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
44
  $required_php_version = version_compare( PHP_VERSION, '5.6.0', '<' );
6
  * Plugin Name: Post SMTP
7
  * Plugin URI: https://wordpress.org/plugins/post-smtp/
8
  * 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!
9
+ * Version: 2.0.17
10
  * Author: Yehuda Hassine
11
  * Text Domain: post-smtp
12
  * Author URI: https://postmansmtp.com
35
  define( 'POST_SMTP_BASE', __FILE__ );
36
  define( 'POST_SMTP_PATH', __DIR__ );
37
  define( 'POST_SMTP_URL', plugins_url('', POST_SMTP_BASE ) );
38
+ define( 'POST_SMTP_VER', '2.0.17' );
39
  define( 'POST_SMTP_SHOW_RELEASE_MESSAGE', true );
40
+ define( 'POST_SMTP_RELEASE_MESSAGE', "Post SMTP v2.0.17 - Extensions" );
41
+ define( 'POST_SMTP_RELEASE_URL', 'https://postmansmtp.com/post-smtp-2-0-17-extensions/' );
42
 
43
  $postman_smtp_exist = in_array( 'postman-smtp/postman-smtp.php', (array) get_option( 'active_plugins', array() ) );
44
  $required_php_version = version_compare( PHP_VERSION, '5.6.0', '<' );
readme.txt CHANGED
@@ -4,17 +4,17 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=yehudaha
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: 5.6
7
- Stable tag: 2.0.16
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Send, log and troubleshoot your Outgoing Email easily. Supports everything: SMTP, Gmail, Mailgun, Mandril, SendGrid, Elastic Email and OAuth 2.0!
12
 
13
  == Description ==
14
 
15
- = Looking for Google Analytics AIO plugin? =
16
- If you used the good and old Google Analytics Dashboard For WP, I have forked the original plugin here:
17
- [https://wordpress.org/plugins/metrics-query/](https://wordpress.org/plugins/metrics-query/)
18
 
19
  = The Only SMTP plugin with chrome Notifications =
20
  Get notified if your emails are failing inside your Chrome browser. [Download here](https://chrome.google.com/webstore/detail/post-smtp-notifications/npklmbkpbknkmbohdbpikeidiaekjoch?hl=en-US)
@@ -281,6 +281,9 @@ To avoid being flagged as spam, you need to prove your email isn't forged. On a
281
 
282
  == Changelog ==
283
 
 
 
 
284
  = 2.0.16 - 2020-12-13
285
  * Update: General Info
286
 
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: 5.6
7
+ Stable tag: 2.0.17
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Send, log and troubleshoot your Outgoing Email easily. Supports everything: SMTP, Gmail, Mailgun, office365, SendGrid, Elastic Email and OAuth 2.0!
12
 
13
  == Description ==
14
 
15
+ = Looking for Office 365 API delivery? =
16
+ Check this extensions page, it will update with more extensions so don't forget to follow:
17
+ [https://postmansmtp.com/extensions/](https://postmansmtp.com/extensions/)
18
 
19
  = The Only SMTP plugin with chrome Notifications =
20
  Get notified if your emails are failing inside your Chrome browser. [Download here](https://chrome.google.com/webstore/detail/post-smtp-notifications/npklmbkpbknkmbohdbpikeidiaekjoch?hl=en-US)
281
 
282
  == Changelog ==
283
 
284
+ = 2.0.17 - 2020-01-17
285
+ * New: Plugin Extensions
286
+
287
  = 2.0.16 - 2020-12-13
288
  * Update: General Info
289
 
style/postman.css CHANGED
@@ -9,7 +9,6 @@
9
  margin: 0;
10
  margin-right: 10px;
11
  overflow: hidden;
12
- max-height: 300px;
13
  border-radius: 5px;
14
  }
15
 
@@ -98,7 +97,7 @@ p#back_to_main_menu {
98
  padding-right: 10px;
99
  }
100
 
101
- .welcome-panel-column welcome-panel-last {
102
  padding-bottom: 10px;
103
  }
104
 
@@ -124,7 +123,7 @@ p#back_to_main_menu {
124
  .post-badge {
125
  position: absolute;
126
  top: 0;
127
- right: 0;
128
  padding-top: 142px;
129
  height: 50px;
130
  width: 173px;
@@ -133,7 +132,7 @@ p#back_to_main_menu {
133
  font-size: 14px;
134
  text-align: center;
135
  margin: 0 -5px;
136
- background: url(images/badge.png) no-repeat;
137
  }
138
 
139
 
@@ -157,4 +156,4 @@ p#back_to_main_menu {
157
  100% {
158
  opacity: 1;
159
  }
160
- }
9
  margin: 0;
10
  margin-right: 10px;
11
  overflow: hidden;
 
12
  border-radius: 5px;
13
  }
14
 
97
  padding-right: 10px;
98
  }
99
 
100
+ .welcome-panel-column.welcome-panel-last {
101
  padding-bottom: 10px;
102
  }
103
 
123
  .post-badge {
124
  position: absolute;
125
  top: 0;
126
+ right: 0;
127
  padding-top: 142px;
128
  height: 50px;
129
  width: 173px;
132
  font-size: 14px;
133
  text-align: center;
134
  margin: 0 -5px;
135
+ background: url(images/badge.png) no-repeat;
136
  }
137
 
138
 
156
  100% {
157
  opacity: 1;
158
  }
159
+ }