Post SMTP Mailer/Email Log - Version 2.1.8-beta.1

Version Description

Download this release

Release Info

Developer wpexpertsio
Plugin Icon 128x128 Post SMTP Mailer/Email Log
Version 2.1.8-beta.1
Comparing to
See all releases

Code changes from version 2.1.7 to 2.1.8-beta.1

Postman/Postman-Mail/PostmanMailgunTransport.php CHANGED
@@ -278,4 +278,16 @@ class PostmanMailgunTransport extends PostmanAbstractModuleTransport implements
278
  return POST_SMTP_ASSETS . "images/logos/mailgun.png";
279
 
280
  }
 
 
 
 
 
 
 
 
 
 
 
 
281
  }
278
  return POST_SMTP_ASSETS . "images/logos/mailgun.png";
279
 
280
  }
281
+
282
+ /**
283
+ * Returns true, to prevent from errors because it's default Module Transport.
284
+ *
285
+ * @since 2.1.8
286
+ * @version 1.0
287
+ */
288
+ public function has_granted() {
289
+
290
+ return true;
291
+
292
+ }
293
  }
Postman/Postman-Mail/PostmanMandrillTransport.php CHANGED
@@ -291,4 +291,16 @@ class PostmanMandrillTransport extends PostmanAbstractModuleTransport implements
291
  return POST_SMTP_ASSETS . "images/logos/mandrill.png";
292
 
293
  }
 
 
 
 
 
 
 
 
 
 
 
 
294
  }
291
  return POST_SMTP_ASSETS . "images/logos/mandrill.png";
292
 
293
  }
294
+
295
+ /**
296
+ * Returns true, to prevent from errors because it's default Module Transport.
297
+ *
298
+ * @since 2.1.8
299
+ * @version 1.0
300
+ */
301
+ public function has_granted() {
302
+
303
+ return true;
304
+
305
+ }
306
  }
Postman/Postman-Mail/PostmanSendGridTransport.php CHANGED
@@ -242,4 +242,17 @@ class PostmanSendGridTransport extends PostmanAbstractModuleTransport implements
242
  return POST_SMTP_ASSETS . "images/logos/sendgrid.png";
243
 
244
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  }
242
  return POST_SMTP_ASSETS . "images/logos/sendgrid.png";
243
 
244
  }
245
+
246
+
247
+ /**
248
+ * Returns true, to prevent from errors because it's default Module Transport.
249
+ *
250
+ * @since 2.1.8
251
+ * @version 1.0
252
+ */
253
+ public function has_granted() {
254
+
255
+ return true;
256
+
257
+ }
258
  }
Postman/Postman-Mail/PostmanSendinblueTransport.php CHANGED
@@ -272,5 +272,50 @@ class PostmanSendinblueTransport extends PostmanAbstractModuleTransport implemen
272
  return POST_SMTP_ASSETS . "images/logos/sendinblue.png";
273
 
274
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  }
276
  endif;
272
  return POST_SMTP_ASSETS . "images/logos/sendinblue.png";
273
 
274
  }
275
+
276
+ /**
277
+ * Returns true, to prevent from errors because it's default Module Transport.
278
+ *
279
+ * @since 2.1.8
280
+ * @version 1.0
281
+ */
282
+ public function has_granted() {
283
+
284
+ return true;
285
+
286
+ }
287
+
288
+ /**
289
+ * (non-PHPdoc)
290
+ *
291
+ * @see PostmanTransport::getMisconfigurationMessage()
292
+ * @since 2.1.8
293
+ * @version 1.0
294
+ */
295
+ protected function validateTransportConfiguration() {
296
+ $messages = parent::validateTransportConfiguration ();
297
+ $apiKey = $this->options->getSendinblueApiKey ();
298
+ if (empty ( $apiKey )) {
299
+ array_push ( $messages, __ ( 'API Key can not be empty', 'post-smtp' ) . '.' );
300
+ $this->setNotConfiguredAndReady ();
301
+ }
302
+ if (! $this->isSenderConfigured ()) {
303
+ array_push ( $messages, __ ( 'Message From Address can not be empty', 'post-smtp' ) . '.' );
304
+ $this->setNotConfiguredAndReady ();
305
+ }
306
+ return $messages;
307
+ }
308
+
309
+ /**
310
+ *
311
+ * @param mixed $data
312
+ * @since 2.1.8
313
+ * @version 1.0
314
+ */
315
+ public function prepareOptionsForExport($data) {
316
+ $data = parent::prepareOptionsForExport ( $data );
317
+ $data [PostmanOptions::SENDINBLUE_API_KEY] = PostmanOptions::getInstance ()->getSendinblueApiKey ();
318
+ return $data;
319
+ }
320
  }
321
  endif;
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.1.7
10
  * Author: Post SMTP
11
  * Text Domain: post-smtp
12
  * Author URI: https://postmansmtp.com
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.1.8-beta.1
10
  * Author: Post SMTP
11
  * Text Domain: post-smtp
12
  * Author URI: https://postmansmtp.com