Easy WP SMTP - Version 1.4.4

Version Description

  • Debug log is now reset when plugin is activated or deactivated.
  • Debug log file is now in the logs folder and is hidden (it's name starts with .). It is additionally protected from public access by the .htaccess file. Thanks to @mathieg2, @burkingman and @shadowdao for their reports and input.
  • Added swpsmtp_log_file_path_override filter that can be used to override debug log file location.
Download this release

Release Info

Developer mra13
Plugin Icon 128x128 Easy WP SMTP
Version 1.4.4
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.4

class-easywpsmtp-admin.php CHANGED
@@ -406,7 +406,10 @@ function swpsmtp_settings() {
406
  <th scope="row"><?php esc_html_e( 'Enable Debug Log', 'easy-wp-smtp' ); ?></th>
407
  <td>
408
  <input id="swpsmtp_enable_debug" type="checkbox" name="swpsmtp_enable_debug" value="1" <?php echo ( isset( $swpsmtp_options['smtp_settings']['enable_debug'] ) && ( $swpsmtp_options['smtp_settings']['enable_debug'] ) ) ? 'checked' : ''; ?> />
409
- <p class="description"><?php esc_html_e( 'Check this box to enable mail debug log', 'easy-wp-smtp' ); ?></p>
 
 
 
410
  <a href="<?php echo esc_attr( admin_url() ); ?>?swpsmtp_action=view_log" target="_blank"><?php esc_html_e( 'View Log', 'easy-wp-smtp' ); ?></a> | <a style="color: red;" id="swpsmtp_clear_log_btn" href="#0"><?php esc_html_e( 'Clear Log', 'easy-wp-smtp' ); ?></a>
411
  </td>
412
  </tr>
406
  <th scope="row"><?php esc_html_e( 'Enable Debug Log', 'easy-wp-smtp' ); ?></th>
407
  <td>
408
  <input id="swpsmtp_enable_debug" type="checkbox" name="swpsmtp_enable_debug" value="1" <?php echo ( isset( $swpsmtp_options['smtp_settings']['enable_debug'] ) && ( $swpsmtp_options['smtp_settings']['enable_debug'] ) ) ? 'checked' : ''; ?> />
409
+ <p class="description"><?php esc_html_e( 'Check this box to enable mail debug log', 'easy-wp-smtp' ); ?>
410
+ <br/>
411
+ <b><?php echo esc_html( _x( 'Note:', '"Note" as in "Note: keep this in mind"', 'easy-wp-smtp' ) ); ?></b> <?php esc_html_e( 'debug log is reset when the plugin is activated, deactivated or updated.', 'easy-wp-smtp' ); ?>
412
+ </p>
413
  <a href="<?php echo esc_attr( admin_url() ); ?>?swpsmtp_action=view_log" target="_blank"><?php esc_html_e( 'View Log', 'easy-wp-smtp' ); ?></a> | <a style="color: red;" id="swpsmtp_clear_log_btn" href="#0"><?php esc_html_e( 'Clear Log', 'easy-wp-smtp' ); ?></a>
414
  </td>
415
  </tr>
easy-wp-smtp.php CHANGED
@@ -3,7 +3,7 @@ use PHPMailer\PHPMailer\PHPMailer;
3
  use PHPMailer\PHPMailer\Exception;
4
  /*
5
  Plugin Name: Easy WP SMTP
6
- Version: 1.4.3
7
  Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
8
  Author: wpecommerce, alexanderfoxc
9
  Author URI: https://wp-ecommerce.net/
@@ -18,7 +18,8 @@ class EasyWPSMTP {
18
 
19
  public $opts;
20
  public $plugin_file;
21
- protected static $instance = null;
 
22
 
23
  public function __construct() {
24
  $this->opts = get_option( 'swpsmtp_options' );
@@ -34,6 +35,7 @@ class EasyWPSMTP {
34
  if ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
35
  require_once 'class-easywpsmtp-admin.php';
36
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
 
37
  register_uninstall_hook( __FILE__, 'swpsmtp_uninstall' );
38
  add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 2 );
39
  add_filter( 'plugin_row_meta', array( $this, 'register_plugin_links' ), 10, 2 );
@@ -312,7 +314,7 @@ class EasyWPSMTP {
312
  }
313
 
314
  if ( ! file_exists( plugin_dir_path( __FILE__ ) . $log_file_name ) ) {
315
- if ( $this->log( "Easy WP SMTP debug log file\r\n\r\n" ) === false ) {
316
  wp_die( esc_html( sprintf( 'Can\'t write to log file. Check if plugin directory (%s) is writeable.', plugin_dir_path( __FILE__ ) ) ) );
317
  };
318
  }
@@ -426,12 +428,18 @@ class EasyWPSMTP {
426
  }
427
  }
428
 
 
 
 
 
 
 
429
  public function clear_log() {
430
  if ( ! check_ajax_referer( 'easy-wp-smtp-clear-log', 'nonce', false ) ) {
431
  echo esc_html( __( 'Nonce check failed.', 'easy-wp-smtp' ) );
432
  exit;
433
  };
434
- if ( $this->log( "Easy WP SMTP debug log file\r\n\r\n", true ) !== false ) {
435
  echo '1';
436
  } else {
437
  echo esc_html( __( "Can't clear log - file is not writeable.", 'easy-wp-smtp' ) );
@@ -440,16 +448,25 @@ class EasyWPSMTP {
440
  }
441
 
442
  public function log( $str, $overwrite = false ) {
443
- if ( isset( $this->opts['smtp_settings']['log_file_name'] ) ) {
444
- $log_file_name = $this->opts['smtp_settings']['log_file_name'];
445
- } else {
446
- // let's generate log file name
447
- $log_file_name = uniqid() . '_debug_log.txt';
448
- $this->opts['smtp_settings']['log_file_name'] = $log_file_name;
449
- update_option( 'swpsmtp_options', $this->opts );
450
- file_put_contents( plugin_dir_path( __FILE__ ) . $log_file_name, "Easy WP SMTP debug log file\r\n\r\n" ); //phpcs:ignore
451
- }
 
 
 
 
 
 
452
  return ( file_put_contents( plugin_dir_path( __FILE__ ) . $log_file_name, $str, ( ! $overwrite ? FILE_APPEND : 0 ) ) ); //phpcs:ignore
 
 
 
453
  }
454
 
455
  public function plugin_action_links( $links, $file ) {
@@ -591,6 +608,8 @@ class EasyWPSMTP {
591
  $this->opts = $swpsmtp_options_default;
592
  }
593
  $this->opts = array_merge( $swpsmtp_options_default, $this->opts );
 
 
594
  update_option( 'swpsmtp_options', $this->opts, 'yes' );
595
  //add current domain to allowed domains list
596
  if ( ! isset( $this->opts['allowed_domains'] ) ) {
@@ -619,6 +638,11 @@ class EasyWPSMTP {
619
  }
620
  }
621
 
 
 
 
 
 
622
  public function self_destruct_handler() {
623
  $err_msg = __( 'Please refresh the page and try again.', 'easy-wp-smtp' );
624
  $trans = get_transient( 'easy_wp_smtp_sd_code' );
@@ -631,6 +655,7 @@ class EasyWPSMTP {
631
  echo esc_html( $err_msg );
632
  exit;
633
  }
 
634
  delete_site_option( 'swpsmtp_options' );
635
  delete_option( 'swpsmtp_options' );
636
  delete_site_option( 'smtp_test_mail' );
3
  use PHPMailer\PHPMailer\Exception;
4
  /*
5
  Plugin Name: Easy WP SMTP
6
+ Version: 1.4.4
7
  Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
8
  Author: wpecommerce, alexanderfoxc
9
  Author URI: https://wp-ecommerce.net/
18
 
19
  public $opts;
20
  public $plugin_file;
21
+ protected static $instance = null;
22
+ public static $reset_log_str = "Easy WP SMTP debug log file\r\n\r\n";
23
 
24
  public function __construct() {
25
  $this->opts = get_option( 'swpsmtp_options' );
35
  if ( is_admin() && ! ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
36
  require_once 'class-easywpsmtp-admin.php';
37
  register_activation_hook( __FILE__, array( $this, 'activate' ) );
38
+ register_deactivation_hook( __FILE__, array( $this, 'deactivate' ) );
39
  register_uninstall_hook( __FILE__, 'swpsmtp_uninstall' );
40
  add_filter( 'plugin_action_links', array( $this, 'plugin_action_links' ), 10, 2 );
41
  add_filter( 'plugin_row_meta', array( $this, 'register_plugin_links' ), 10, 2 );
314
  }
315
 
316
  if ( ! file_exists( plugin_dir_path( __FILE__ ) . $log_file_name ) ) {
317
+ if ( $this->log( self::$reset_log_str ) === false ) {
318
  wp_die( esc_html( sprintf( 'Can\'t write to log file. Check if plugin directory (%s) is writeable.', plugin_dir_path( __FILE__ ) ) ) );
319
  };
320
  }
428
  }
429
  }
430
 
431
+ public function get_log_file_path() {
432
+ $log_file_name = 'logs' . DIRECTORY_SEPARATOR . '.' . uniqid( '', true ) . '.txt';
433
+ $log_file_name = apply_filters( 'swpsmtp_log_file_path_override', $log_file_name );
434
+ return $log_file_name;
435
+ }
436
+
437
  public function clear_log() {
438
  if ( ! check_ajax_referer( 'easy-wp-smtp-clear-log', 'nonce', false ) ) {
439
  echo esc_html( __( 'Nonce check failed.', 'easy-wp-smtp' ) );
440
  exit;
441
  };
442
+ if ( $this->log( self::$reset_log_str, true ) !== false ) {
443
  echo '1';
444
  } else {
445
  echo esc_html( __( "Can't clear log - file is not writeable.", 'easy-wp-smtp' ) );
448
  }
449
 
450
  public function log( $str, $overwrite = false ) {
451
+ try {
452
+ $log_file_name = '';
453
+ if ( isset( $this->opts['smtp_settings']['log_file_name'] ) ) {
454
+ $log_file_name = $this->opts['smtp_settings']['log_file_name'];
455
+ }
456
+ if ( empty( $log_file_name ) || $overwrite ) {
457
+ if ( ! empty( $log_file_name ) && file_exists( plugin_dir_path( __FILE__ ) . $log_file_name ) ) {
458
+ unlink( plugin_dir_path( __FILE__ ) . $log_file_name );
459
+ }
460
+ $log_file_name = $this->get_log_file_path();
461
+
462
+ $this->opts['smtp_settings']['log_file_name'] = $log_file_name;
463
+ update_option( 'swpsmtp_options', $this->opts );
464
+ file_put_contents( plugin_dir_path( __FILE__ ) . $log_file_name, self::$reset_log_str ); //phpcs:ignore
465
+ }
466
  return ( file_put_contents( plugin_dir_path( __FILE__ ) . $log_file_name, $str, ( ! $overwrite ? FILE_APPEND : 0 ) ) ); //phpcs:ignore
467
+ } catch ( \Exception $e ) {
468
+ return false;
469
+ }
470
  }
471
 
472
  public function plugin_action_links( $links, $file ) {
608
  $this->opts = $swpsmtp_options_default;
609
  }
610
  $this->opts = array_merge( $swpsmtp_options_default, $this->opts );
611
+ // reset log file
612
+ $this->log( self::$reset_log_str, true );
613
  update_option( 'swpsmtp_options', $this->opts, 'yes' );
614
  //add current domain to allowed domains list
615
  if ( ! isset( $this->opts['allowed_domains'] ) ) {
638
  }
639
  }
640
 
641
+ public function deactivate() {
642
+ // reset log file
643
+ $this->log( self::$reset_log_str, true );
644
+ }
645
+
646
  public function self_destruct_handler() {
647
  $err_msg = __( 'Please refresh the page and try again.', 'easy-wp-smtp' );
648
  $trans = get_transient( 'easy_wp_smtp_sd_code' );
655
  echo esc_html( $err_msg );
656
  exit;
657
  }
658
+ $this->log( self::$reset_log_str, true );
659
  delete_site_option( 'swpsmtp_options' );
660
  delete_option( 'swpsmtp_options' );
661
  delete_site_option( 'smtp_test_mail' );
languages/easy-wp-smtp.pot CHANGED
@@ -2,16 +2,16 @@
2
  # This file is distributed under the same license as the Easy WP SMTP plugin.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Easy WP SMTP 1.4.1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-wp-smtp\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "POT-Creation-Date: 2020-07-31T17:26:40+03:00\n"
13
- "PO-Revision-Date: 2020-07-31T17:26:40+03:00\n"
14
- "X-Generator: WP-CLI 2.0.1\n"
15
  "X-Domain: easy-wp-smtp\n"
16
 
17
  #. Plugin Name of the plugin
@@ -35,36 +35,6 @@ msgstr ""
35
  msgid "https://wp-ecommerce.net/"
36
  msgstr ""
37
 
38
- #: easy-wp-smtp.php:358
39
- msgid "Error occurred during settings import"
40
- msgstr ""
41
-
42
- #: easy-wp-smtp.php:410
43
- msgid "Please configure your SMTP credentials in the <a href=\"%s\">settings menu</a> in order to send email using Easy WP SMTP plugin."
44
- msgstr ""
45
-
46
- #: easy-wp-smtp.php:422
47
- msgid "Settings have been imported successfully."
48
- msgstr ""
49
-
50
- #: easy-wp-smtp.php:430
51
- #: class-easywpsmtp-admin.php:112
52
- msgid "Nonce check failed."
53
- msgstr ""
54
-
55
- #: easy-wp-smtp.php:436
56
- msgid "Can't clear log - file is not writeable."
57
- msgstr ""
58
-
59
- #: easy-wp-smtp.php:456
60
- #: easy-wp-smtp.php:464
61
- msgid "Settings"
62
- msgstr ""
63
-
64
- #: easy-wp-smtp.php:622
65
- msgid "Please refresh the page and try again."
66
- msgstr ""
67
-
68
  #: class-easywpsmtp-admin.php:39
69
  msgid "Are you sure want to clear log?"
70
  msgstr ""
@@ -106,6 +76,11 @@ msgstr ""
106
  msgid "Easy WP SMTP Settings"
107
  msgstr ""
108
 
 
 
 
 
 
109
  #: class-easywpsmtp-admin.php:123
110
  msgid "Please enter a valid email address in the 'FROM' field."
111
  msgstr ""
@@ -135,7 +110,7 @@ msgid "Additional Settings"
135
  msgstr ""
136
 
137
  #: class-easywpsmtp-admin.php:221
138
- #: class-easywpsmtp-admin.php:463
139
  msgid "Test Email"
140
  msgstr ""
141
 
@@ -268,8 +243,9 @@ msgid "The password to login to your mail server"
268
  msgstr ""
269
 
270
  #: class-easywpsmtp-admin.php:348
271
- #: class-easywpsmtp-admin.php:465
272
- #: class-easywpsmtp-admin.php:517
 
273
  msgctxt "\"Note\" as in \"Note: keep this in mind\""
274
  msgid "Note:"
275
  msgstr ""
@@ -279,7 +255,7 @@ msgid "when you click \"Save Changes\", your actual password is stored in the da
279
  msgstr ""
280
 
281
  #: class-easywpsmtp-admin.php:353
282
- #: class-easywpsmtp-admin.php:415
283
  msgid "Save Changes"
284
  msgstr ""
285
 
@@ -343,149 +319,178 @@ msgstr ""
343
  msgid "Check this box to enable mail debug log"
344
  msgstr ""
345
 
346
- #: class-easywpsmtp-admin.php:410
 
 
 
 
347
  msgid "View Log"
348
  msgstr ""
349
 
350
- #: class-easywpsmtp-admin.php:410
351
  msgid "Clear Log"
352
  msgstr ""
353
 
354
- #: class-easywpsmtp-admin.php:422
355
  msgid "Danger Zone"
356
  msgstr ""
357
 
358
- #: class-easywpsmtp-admin.php:424
359
  msgid "Actions in this section can (and some of them will) erase or mess up your settings. Use it with caution."
360
  msgstr ""
361
 
362
- #: class-easywpsmtp-admin.php:427
363
  msgid "Export\\Import Settings"
364
  msgstr ""
365
 
366
- #: class-easywpsmtp-admin.php:429
367
  msgid "Export Settings"
368
  msgstr ""
369
 
370
- #: class-easywpsmtp-admin.php:430
371
  msgid "Use this to export plugin settings to a file."
372
  msgstr ""
373
 
374
- #: class-easywpsmtp-admin.php:432
375
  msgid "Import Settings"
376
  msgstr ""
377
 
378
- #: class-easywpsmtp-admin.php:433
379
  msgid "Use this to import plugin settings from a file. Note this would replace all your existing settings, so use with caution."
380
  msgstr ""
381
 
382
- #: class-easywpsmtp-admin.php:437
383
  msgid "Delete Settings and Deactivate Plugin"
384
  msgstr ""
385
 
386
- #: class-easywpsmtp-admin.php:439
387
  msgid "Self-destruct"
388
  msgstr ""
389
 
390
- #: class-easywpsmtp-admin.php:439
391
  msgid "This will remove ALL your settings and deactivate the plugin. Useful when you're uninstalling the plugin and want to completely remove all crucial data stored in the database."
392
  msgstr ""
393
 
394
- #: class-easywpsmtp-admin.php:440
395
  msgid "Warning! This can't be undone."
396
  msgstr ""
397
 
398
- #: class-easywpsmtp-admin.php:465
399
  msgid "You have unsaved settings. In order to send a test email, you need to go back to previous tab and click \"Save Changes\" button first."
400
  msgstr ""
401
 
402
- #: class-easywpsmtp-admin.php:471
403
  msgid "Following error occurred when attempting to send test email:"
404
  msgstr ""
405
 
406
- #: class-easywpsmtp-admin.php:474
407
  msgid "Test email was successfully sent. No errors occurred during the process."
408
  msgstr ""
409
 
410
- #: class-easywpsmtp-admin.php:485
411
- #: class-easywpsmtp-admin.php:493
412
  msgid "Show Debug Log"
413
  msgstr ""
414
 
415
- #: class-easywpsmtp-admin.php:495
416
  msgid "Hide Debug Log"
417
  msgstr ""
418
 
419
- #: class-easywpsmtp-admin.php:516
420
  msgid "You can use this section to send an email from your server using the above configured SMTP details to see if the email gets delivered."
421
  msgstr ""
422
 
423
- #: class-easywpsmtp-admin.php:517
424
  msgid "debug log for this test email will be automatically displayed right after you send it. Test email also ignores \"Enable Domain Check\" option."
425
  msgstr ""
426
 
427
- #: class-easywpsmtp-admin.php:522
428
  msgid "To"
429
  msgstr ""
430
 
431
- #: class-easywpsmtp-admin.php:525
432
  msgid "Enter the recipient's email address"
433
  msgstr ""
434
 
435
- #: class-easywpsmtp-admin.php:529
436
  msgid "Subject"
437
  msgstr ""
438
 
439
- #: class-easywpsmtp-admin.php:532
440
  msgid "Enter a subject for your message"
441
  msgstr ""
442
 
443
- #: class-easywpsmtp-admin.php:536
444
  msgid "Message"
445
  msgstr ""
446
 
447
- #: class-easywpsmtp-admin.php:539
448
  msgid "Write your email message"
449
  msgstr ""
450
 
451
- #: class-easywpsmtp-admin.php:544
452
  msgid "Send Test Email"
453
  msgstr ""
454
 
455
- #: class-easywpsmtp-admin.php:557
456
  msgid "Documentation"
457
  msgstr ""
458
 
459
  #. translators: %s is replaced by documentation page URL
460
- #: class-easywpsmtp-admin.php:563
461
  msgctxt "%s is replaced by <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>"
462
  msgid "Please visit the %s plugin's documentation page to learn how to use this plugin."
463
  msgstr ""
464
 
465
- #: class-easywpsmtp-admin.php:571
466
  msgid "Support"
467
  msgstr ""
468
 
469
  #. translators: %s is replaced by support forum URL
470
- #: class-easywpsmtp-admin.php:577
471
  msgctxt "%s is replaced by \"Support Forum\" link"
472
  msgid "Having issues or difficulties? You can post your issue on the %s"
473
  msgstr ""
474
 
475
- #: class-easywpsmtp-admin.php:581
476
  msgid "Support Forum"
477
  msgstr ""
478
 
479
- #: class-easywpsmtp-admin.php:588
480
  msgid "Rate Us"
481
  msgstr ""
482
 
483
  #. translators: %s is replaced by rating link
484
- #: class-easywpsmtp-admin.php:594
485
  msgctxt "%s is replaced by \"rating\" link"
486
  msgid "Like the plugin? Please give us a %s"
487
  msgstr ""
488
 
489
- #: class-easywpsmtp-admin.php:598
490
  msgid "rating"
491
  msgstr ""
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  # This file is distributed under the same license as the Easy WP SMTP plugin.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Easy WP SMTP 1.4.4t1\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/easy-wp-smtp\n"
7
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
  "Language-Team: LANGUAGE <LL@li.org>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "POT-Creation-Date: 2020-12-08T18:27:38+02:00\n"
13
+ "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
+ "X-Generator: WP-CLI 2.4.0\n"
15
  "X-Domain: easy-wp-smtp\n"
16
 
17
  #. Plugin Name of the plugin
35
  msgid "https://wp-ecommerce.net/"
36
  msgstr ""
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  #: class-easywpsmtp-admin.php:39
39
  msgid "Are you sure want to clear log?"
40
  msgstr ""
76
  msgid "Easy WP SMTP Settings"
77
  msgstr ""
78
 
79
+ #: class-easywpsmtp-admin.php:112
80
+ #: easy-wp-smtp.php:439
81
+ msgid "Nonce check failed."
82
+ msgstr ""
83
+
84
  #: class-easywpsmtp-admin.php:123
85
  msgid "Please enter a valid email address in the 'FROM' field."
86
  msgstr ""
110
  msgstr ""
111
 
112
  #: class-easywpsmtp-admin.php:221
113
+ #: class-easywpsmtp-admin.php:466
114
  msgid "Test Email"
115
  msgstr ""
116
 
243
  msgstr ""
244
 
245
  #: class-easywpsmtp-admin.php:348
246
+ #: class-easywpsmtp-admin.php:411
247
+ #: class-easywpsmtp-admin.php:468
248
+ #: class-easywpsmtp-admin.php:520
249
  msgctxt "\"Note\" as in \"Note: keep this in mind\""
250
  msgid "Note:"
251
  msgstr ""
255
  msgstr ""
256
 
257
  #: class-easywpsmtp-admin.php:353
258
+ #: class-easywpsmtp-admin.php:418
259
  msgid "Save Changes"
260
  msgstr ""
261
 
319
  msgid "Check this box to enable mail debug log"
320
  msgstr ""
321
 
322
+ #: class-easywpsmtp-admin.php:411
323
+ msgid "debug log is reset when the plugin is activated, deactivated or updated."
324
+ msgstr ""
325
+
326
+ #: class-easywpsmtp-admin.php:413
327
  msgid "View Log"
328
  msgstr ""
329
 
330
+ #: class-easywpsmtp-admin.php:413
331
  msgid "Clear Log"
332
  msgstr ""
333
 
334
+ #: class-easywpsmtp-admin.php:425
335
  msgid "Danger Zone"
336
  msgstr ""
337
 
338
+ #: class-easywpsmtp-admin.php:427
339
  msgid "Actions in this section can (and some of them will) erase or mess up your settings. Use it with caution."
340
  msgstr ""
341
 
342
+ #: class-easywpsmtp-admin.php:430
343
  msgid "Export\\Import Settings"
344
  msgstr ""
345
 
346
+ #: class-easywpsmtp-admin.php:432
347
  msgid "Export Settings"
348
  msgstr ""
349
 
350
+ #: class-easywpsmtp-admin.php:433
351
  msgid "Use this to export plugin settings to a file."
352
  msgstr ""
353
 
354
+ #: class-easywpsmtp-admin.php:435
355
  msgid "Import Settings"
356
  msgstr ""
357
 
358
+ #: class-easywpsmtp-admin.php:436
359
  msgid "Use this to import plugin settings from a file. Note this would replace all your existing settings, so use with caution."
360
  msgstr ""
361
 
362
+ #: class-easywpsmtp-admin.php:440
363
  msgid "Delete Settings and Deactivate Plugin"
364
  msgstr ""
365
 
366
+ #: class-easywpsmtp-admin.php:442
367
  msgid "Self-destruct"
368
  msgstr ""
369
 
370
+ #: class-easywpsmtp-admin.php:442
371
  msgid "This will remove ALL your settings and deactivate the plugin. Useful when you're uninstalling the plugin and want to completely remove all crucial data stored in the database."
372
  msgstr ""
373
 
374
+ #: class-easywpsmtp-admin.php:443
375
  msgid "Warning! This can't be undone."
376
  msgstr ""
377
 
378
+ #: class-easywpsmtp-admin.php:468
379
  msgid "You have unsaved settings. In order to send a test email, you need to go back to previous tab and click \"Save Changes\" button first."
380
  msgstr ""
381
 
382
+ #: class-easywpsmtp-admin.php:474
383
  msgid "Following error occurred when attempting to send test email:"
384
  msgstr ""
385
 
386
+ #: class-easywpsmtp-admin.php:477
387
  msgid "Test email was successfully sent. No errors occurred during the process."
388
  msgstr ""
389
 
390
+ #: class-easywpsmtp-admin.php:488
391
+ #: class-easywpsmtp-admin.php:496
392
  msgid "Show Debug Log"
393
  msgstr ""
394
 
395
+ #: class-easywpsmtp-admin.php:498
396
  msgid "Hide Debug Log"
397
  msgstr ""
398
 
399
+ #: class-easywpsmtp-admin.php:519
400
  msgid "You can use this section to send an email from your server using the above configured SMTP details to see if the email gets delivered."
401
  msgstr ""
402
 
403
+ #: class-easywpsmtp-admin.php:520
404
  msgid "debug log for this test email will be automatically displayed right after you send it. Test email also ignores \"Enable Domain Check\" option."
405
  msgstr ""
406
 
407
+ #: class-easywpsmtp-admin.php:525
408
  msgid "To"
409
  msgstr ""
410
 
411
+ #: class-easywpsmtp-admin.php:528
412
  msgid "Enter the recipient's email address"
413
  msgstr ""
414
 
415
+ #: class-easywpsmtp-admin.php:532
416
  msgid "Subject"
417
  msgstr ""
418
 
419
+ #: class-easywpsmtp-admin.php:535
420
  msgid "Enter a subject for your message"
421
  msgstr ""
422
 
423
+ #: class-easywpsmtp-admin.php:539
424
  msgid "Message"
425
  msgstr ""
426
 
427
+ #: class-easywpsmtp-admin.php:542
428
  msgid "Write your email message"
429
  msgstr ""
430
 
431
+ #: class-easywpsmtp-admin.php:547
432
  msgid "Send Test Email"
433
  msgstr ""
434
 
435
+ #: class-easywpsmtp-admin.php:560
436
  msgid "Documentation"
437
  msgstr ""
438
 
439
  #. translators: %s is replaced by documentation page URL
440
+ #: class-easywpsmtp-admin.php:566
441
  msgctxt "%s is replaced by <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>"
442
  msgid "Please visit the %s plugin's documentation page to learn how to use this plugin."
443
  msgstr ""
444
 
445
+ #: class-easywpsmtp-admin.php:574
446
  msgid "Support"
447
  msgstr ""
448
 
449
  #. translators: %s is replaced by support forum URL
450
+ #: class-easywpsmtp-admin.php:580
451
  msgctxt "%s is replaced by \"Support Forum\" link"
452
  msgid "Having issues or difficulties? You can post your issue on the %s"
453
  msgstr ""
454
 
455
+ #: class-easywpsmtp-admin.php:584
456
  msgid "Support Forum"
457
  msgstr ""
458
 
459
+ #: class-easywpsmtp-admin.php:591
460
  msgid "Rate Us"
461
  msgstr ""
462
 
463
  #. translators: %s is replaced by rating link
464
+ #: class-easywpsmtp-admin.php:597
465
  msgctxt "%s is replaced by \"rating\" link"
466
  msgid "Like the plugin? Please give us a %s"
467
  msgstr ""
468
 
469
+ #: class-easywpsmtp-admin.php:601
470
  msgid "rating"
471
  msgstr ""
472
+
473
+ #: easy-wp-smtp.php:361
474
+ msgid "Error occurred during settings import"
475
+ msgstr ""
476
+
477
+ #: easy-wp-smtp.php:413
478
+ msgid "Please configure your SMTP credentials in the <a href=\"%s\">settings menu</a> in order to send email using Easy WP SMTP plugin."
479
+ msgstr ""
480
+
481
+ #: easy-wp-smtp.php:425
482
+ msgid "Settings have been imported successfully."
483
+ msgstr ""
484
+
485
+ #: easy-wp-smtp.php:445
486
+ msgid "Can't clear log - file is not writeable."
487
+ msgstr ""
488
+
489
+ #: easy-wp-smtp.php:474
490
+ #: easy-wp-smtp.php:482
491
+ msgid "Settings"
492
+ msgstr ""
493
+
494
+ #: easy-wp-smtp.php:647
495
+ msgid "Please refresh the page and try again."
496
+ msgstr ""
logs/.htaccess ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <Files "*.txt">
2
+ Order Allow,Deny
3
+ Deny from all
4
+ </Files>
logs/index.html ADDED
File without changes
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mai
5
  Requires at least: 5.0
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
- Stable tag: 1.4.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -79,6 +79,11 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
79
 
80
  == Changelog ==
81
 
 
 
 
 
 
82
  = 1.4.3 =
83
  * Added empty "index.html" file to this plugin's folder to prevent anyone from browsing the files (even if the Option -Indexes is missing on that server).
84
 
@@ -149,7 +154,7 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
149
  * The plugin is no longer failing if PHP mbstring extension is not installed on the server.
150
  * Settings page is using tabs now.
151
  * Fixed default settings were not set upon plugin activation.
152
- * Fixed some lines that couldn't be translated to other languages (thanks to jranavas).
153
 
154
  = 1.3.1 =
155
  * Fixed potential issue with passwords that had special characters.
@@ -258,7 +263,4 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
258
  * Fixed a bug where the debug output was being displayed on the front end
259
 
260
  = 1.0.1 =
261
- * First commit of the plugin
262
-
263
- == Upgrade Notice ==
264
- Upgrade to 1.3.9.2 is highly recommended as it adds additional CSRF protection for some admin-side functions.
5
  Requires at least: 5.0
6
  Tested up to: 5.6
7
  Requires PHP: 5.6
8
+ Stable tag: 1.4.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
79
 
80
  == Changelog ==
81
 
82
+ = 1.4.4 =
83
+ * Debug log is now reset when plugin is activated or deactivated.
84
+ * Debug log file is now in the `logs` folder and is hidden (it's name starts with `.`). It is additionally protected from public access by the .htaccess file. Thanks to @mathieg2, @burkingman and @shadowdao for their reports and input.
85
+ * Added `swpsmtp_log_file_path_override` filter that can be used to override debug log file location.
86
+
87
  = 1.4.3 =
88
  * Added empty "index.html" file to this plugin's folder to prevent anyone from browsing the files (even if the Option -Indexes is missing on that server).
89
 
154
  * The plugin is no longer failing if PHP mbstring extension is not installed on the server.
155
  * Settings page is using tabs now.
156
  * Fixed default settings were not set upon plugin activation.
157
+ * Fixed some lines that couldn't be translated to other languages.
158
 
159
  = 1.3.1 =
160
  * Fixed potential issue with passwords that had special characters.
263
  * Fixed a bug where the debug output was being displayed on the front end
264
 
265
  = 1.0.1 =
266
+ * First commit of the plugin