WP Mail SMTP by WPForms - Version 0.11.2

Version Description

Download this release

Release Info

Developer jaredatch
Plugin Icon 128x128 WP Mail SMTP by WPForms
Version 0.11.2
Comparing to
See all releases

Code changes from version 0.11.1 to 0.11.2

class-wpms-am-notification.php CHANGED
@@ -123,9 +123,7 @@ class WPMS_AM_Notification {
123
  'body' => array(
124
  'slug' => $this->plugin,
125
  'version' => $this->plugin_version,
126
- 'last_notification' => $notification_id,
127
- 'plugins' => $this->get_plugins_list(),
128
- 'themes' => $this->get_themes_list(),
129
  ),
130
  ) ) );
131
 
@@ -196,62 +194,6 @@ class WPMS_AM_Notification {
196
  );
197
  }
198
 
199
- /**
200
- * Retrieve a list of plugins that are currently installed.
201
- *
202
- * @since 1.0.0
203
- *
204
- * @return array An array of plugins that are currently installed.
205
- */
206
- public function get_plugins_list() {
207
- if ( ! empty( $this->plugin_list ) ) {
208
- return $this->plugin_list;
209
- }
210
-
211
- if ( ! function_exists( 'get_plugins' ) ) {
212
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
213
- }
214
-
215
- $plugins = get_plugins();
216
-
217
- foreach ( $plugins as $slug => $plugin ) {
218
- $this->plugin_list[ $slug ] = array(
219
- 'slug' => $slug,
220
- 'name' => $plugin['Name'],
221
- 'version' => $plugin['Version'],
222
- 'active' => is_plugin_active( $slug ),
223
- );
224
- }
225
-
226
- return $this->plugin_list;
227
- }
228
-
229
- /**
230
- * Retrieve a list of themes that are currently installed.
231
- *
232
- * @since 1.0.0
233
- *
234
- * @return array An array of themes that are currently installed.
235
- */
236
- public function get_themes_list() {
237
- if ( ! empty( $this->theme_list ) ) {
238
- return $this->theme_list;
239
- }
240
-
241
- $themes = wp_get_themes();
242
-
243
- foreach ( $themes as $slug => $theme ) {
244
- $this->theme_list[ $slug ] = array(
245
- 'slug' => $slug,
246
- 'name' => $theme->Name,
247
- 'version' => $theme->Version,
248
- 'active' => (string) wp_get_theme() === $theme->Name,
249
- );
250
- }
251
-
252
- return $this->theme_list;
253
- }
254
-
255
  /**
256
  * Display any notifications that should be displayed.
257
  *
123
  'body' => array(
124
  'slug' => $this->plugin,
125
  'version' => $this->plugin_version,
126
+ 'last_notification' => $notification_id
 
 
127
  ),
128
  ) ) );
129
 
194
  );
195
  }
196
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
197
  /**
198
  * Display any notifications that should be displayed.
199
  *
languages/wp-mail-smtp.pot CHANGED
@@ -14,182 +14,190 @@ msgstr ""
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
 
17
- #: wp_mail_smtp.php:238
18
  msgid "Test mail to %s"
19
  msgstr ""
20
 
21
- #: wp_mail_smtp.php:239
22
  msgid "This is a test email generated by the WP Mail SMTP WordPress plugin."
23
  msgstr ""
24
 
25
- #: wp_mail_smtp.php:255
26
  msgid "Test Message Sent"
27
  msgstr ""
28
 
29
- #: wp_mail_smtp.php:256
30
  msgid "The result was:"
31
  msgstr ""
32
 
33
- #: wp_mail_smtp.php:259
34
  msgid "The full debugging output is shown below:"
35
  msgstr ""
36
 
37
- #: wp_mail_smtp.php:262
38
  msgid "The SMTP debugging output is shown below:"
39
  msgstr ""
40
 
41
- #: wp_mail_smtp.php:229, wp_mail_smtp.php:583
42
  msgid "Send Test"
43
  msgstr ""
44
 
45
- #: wp_mail_smtp.php:274, wp_mail_smtp.php:619
46
  msgid "WP Mail SMTP Settings"
47
  msgstr ""
48
 
49
- #: wp_mail_smtp.php:283
50
  msgid "From Email"
51
  msgstr ""
52
 
53
- #: wp_mail_smtp.php:290
54
  msgid "You can specify the email address that emails should be sent from. If you leave this blank, the default email will be used."
55
  msgstr ""
56
 
57
- #: wp_mail_smtp.php:293
58
  msgid "<strong>Please Note:</strong> You appear to be using a version of WordPress prior to 2.3. Please ignore the From Name field and instead enter Name&lt;email@domain.com&gt; in this field."
59
  msgstr ""
60
 
61
- #: wp_mail_smtp.php:302
62
  msgid "From Name"
63
  msgstr ""
64
 
65
- #: wp_mail_smtp.php:308
66
  msgid "You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress."
67
  msgstr ""
68
 
69
- #: wp_mail_smtp.php:317, wp_mail_smtp.php:322
70
  msgid "Mailer"
71
  msgstr ""
72
 
73
- #: wp_mail_smtp.php:327
74
  msgid "Send all WordPress emails via SMTP."
75
  msgstr ""
76
 
77
- #: wp_mail_smtp.php:331
78
  msgid "Use the PHP mail() function to send emails."
79
  msgstr ""
80
 
81
- #: wp_mail_smtp.php:337
82
  msgid "Use Pepipost SMTP to send emails."
83
  msgstr ""
84
 
85
- #: wp_mail_smtp.php:343
86
  msgid "Looking for high inbox delivery? Try Pepipost with easy setup and free emails. Learn more %1$shere%2$s."
87
  msgstr ""
88
 
89
- #: wp_mail_smtp.php:358, wp_mail_smtp.php:363
90
  msgid "Return Path"
91
  msgstr ""
92
 
93
- #: wp_mail_smtp.php:368
94
  msgid "Set the return-path to match the From Email"
95
  msgstr ""
96
 
97
- #: wp_mail_smtp.php:372
98
  msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent."
99
  msgstr ""
100
 
101
- #: wp_mail_smtp.php:380, wp_mail_smtp.php:480, wp_mail_smtp.php:556
 
 
 
 
 
 
 
 
102
  msgid "Save Changes"
103
  msgstr ""
104
 
105
- #: wp_mail_smtp.php:385
106
  msgid "SMTP Options"
107
  msgstr ""
108
 
109
- #: wp_mail_smtp.php:387
110
  msgid "These options only apply if you have chosen to send mail by SMTP above."
111
  msgstr ""
112
 
113
- #: wp_mail_smtp.php:392
114
  msgid "SMTP Host"
115
  msgstr ""
116
 
117
- #: wp_mail_smtp.php:400, wp_mail_smtp.php:518
118
  msgid "SMTP Port"
119
  msgstr ""
120
 
121
- #: wp_mail_smtp.php:407, wp_mail_smtp.php:411, wp_mail_smtp.php:526, wp_mail_smtp.php:532
122
  msgid "Encryption"
123
  msgstr ""
124
 
125
- #: wp_mail_smtp.php:416, wp_mail_smtp.php:538
126
  msgid "No encryption."
127
  msgstr ""
128
 
129
- #: wp_mail_smtp.php:421, wp_mail_smtp.php:543
130
  msgid "Use SSL encryption."
131
  msgstr ""
132
 
133
- #: wp_mail_smtp.php:426, wp_mail_smtp.php:548
134
  msgid "Use TLS encryption."
135
  msgstr ""
136
 
137
- #: wp_mail_smtp.php:429
138
  msgid "TLS is not the same as STARTTLS. For most servers SSL is the recommended option."
139
  msgstr ""
140
 
141
- #: wp_mail_smtp.php:434, wp_mail_smtp.php:438
142
  msgid "Authentication"
143
  msgstr ""
144
 
145
- #: wp_mail_smtp.php:443
146
  msgid "No: Do not use SMTP authentication."
147
  msgstr ""
148
 
149
- #: wp_mail_smtp.php:448
150
  msgid "Yes: Use SMTP authentication."
151
  msgstr ""
152
 
153
- #: wp_mail_smtp.php:452
154
  msgid "If this is set to no, the values below are ignored."
155
  msgstr ""
156
 
157
- #: wp_mail_smtp.php:459, wp_mail_smtp.php:502
158
  msgid "Username"
159
  msgstr ""
160
 
161
- #: wp_mail_smtp.php:467, wp_mail_smtp.php:510
162
  msgid "Password"
163
  msgstr ""
164
 
165
- #: wp_mail_smtp.php:473
166
  msgid "This is in plain text because it must not be stored encrypted."
167
  msgstr ""
168
 
169
- #: wp_mail_smtp.php:487
170
  msgid "Pepipost SMTP Options"
171
  msgstr ""
172
 
173
- #: wp_mail_smtp.php:493
174
  msgid "You need to signup on %s to get the SMTP username/password."
175
  msgstr ""
176
 
177
- #: wp_mail_smtp.php:565
178
  msgid "Send a Test Email"
179
  msgstr ""
180
 
181
- #: wp_mail_smtp.php:573
182
  msgid "To"
183
  msgstr ""
184
 
185
- #: wp_mail_smtp.php:577
186
  msgid "Type an email address here and then click Send Test to generate a test email."
187
  msgstr ""
188
 
189
- #: wp_mail_smtp.php:619
190
  msgid "WP Mail SMTP"
191
  msgstr ""
192
 
193
- #: wp_mail_smtp.php:725
194
  msgid "Settings"
195
  msgstr ""
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
 
17
+ #: wp_mail_smtp.php:239
18
  msgid "Test mail to %s"
19
  msgstr ""
20
 
21
+ #: wp_mail_smtp.php:240
22
  msgid "This is a test email generated by the WP Mail SMTP WordPress plugin."
23
  msgstr ""
24
 
25
+ #: wp_mail_smtp.php:256
26
  msgid "Test Message Sent"
27
  msgstr ""
28
 
29
+ #: wp_mail_smtp.php:257
30
  msgid "The result was:"
31
  msgstr ""
32
 
33
+ #: wp_mail_smtp.php:260
34
  msgid "The full debugging output is shown below:"
35
  msgstr ""
36
 
37
+ #: wp_mail_smtp.php:263
38
  msgid "The SMTP debugging output is shown below:"
39
  msgstr ""
40
 
41
+ #: wp_mail_smtp.php:230, wp_mail_smtp.php:604
42
  msgid "Send Test"
43
  msgstr ""
44
 
45
+ #: wp_mail_smtp.php:275, wp_mail_smtp.php:640
46
  msgid "WP Mail SMTP Settings"
47
  msgstr ""
48
 
49
+ #: wp_mail_smtp.php:284
50
  msgid "From Email"
51
  msgstr ""
52
 
53
+ #: wp_mail_smtp.php:291
54
  msgid "You can specify the email address that emails should be sent from. If you leave this blank, the default email will be used."
55
  msgstr ""
56
 
57
+ #: wp_mail_smtp.php:294
58
  msgid "<strong>Please Note:</strong> You appear to be using a version of WordPress prior to 2.3. Please ignore the From Name field and instead enter Name&lt;email@domain.com&gt; in this field."
59
  msgstr ""
60
 
61
+ #: wp_mail_smtp.php:303
62
  msgid "From Name"
63
  msgstr ""
64
 
65
+ #: wp_mail_smtp.php:309
66
  msgid "You can specify the name that emails should be sent from. If you leave this blank, the emails will be sent from WordPress."
67
  msgstr ""
68
 
69
+ #: wp_mail_smtp.php:318, wp_mail_smtp.php:323
70
  msgid "Mailer"
71
  msgstr ""
72
 
73
+ #: wp_mail_smtp.php:328
74
  msgid "Send all WordPress emails via SMTP."
75
  msgstr ""
76
 
77
+ #: wp_mail_smtp.php:332
78
  msgid "Use the PHP mail() function to send emails."
79
  msgstr ""
80
 
81
+ #: wp_mail_smtp.php:338
82
  msgid "Use Pepipost SMTP to send emails."
83
  msgstr ""
84
 
85
+ #: wp_mail_smtp.php:344
86
  msgid "Looking for high inbox delivery? Try Pepipost with easy setup and free emails. Learn more %1$shere%2$s."
87
  msgstr ""
88
 
89
+ #: wp_mail_smtp.php:359, wp_mail_smtp.php:364
90
  msgid "Return Path"
91
  msgstr ""
92
 
93
+ #: wp_mail_smtp.php:369
94
  msgid "Set the return-path to match the From Email"
95
  msgstr ""
96
 
97
+ #: wp_mail_smtp.php:373
98
  msgid "Return Path indicates where non-delivery receipts - or bounce messages - are to be sent."
99
  msgstr ""
100
 
101
+ #: wp_mail_smtp.php:383, wp_mail_smtp.php:388
102
+ msgid "Hide Announcements"
103
+ msgstr ""
104
+
105
+ #: wp_mail_smtp.php:393
106
+ msgid "Check this if you would like to hide plugin announcements and update details."
107
+ msgstr ""
108
+
109
+ #: wp_mail_smtp.php:401, wp_mail_smtp.php:501, wp_mail_smtp.php:577
110
  msgid "Save Changes"
111
  msgstr ""
112
 
113
+ #: wp_mail_smtp.php:406
114
  msgid "SMTP Options"
115
  msgstr ""
116
 
117
+ #: wp_mail_smtp.php:408
118
  msgid "These options only apply if you have chosen to send mail by SMTP above."
119
  msgstr ""
120
 
121
+ #: wp_mail_smtp.php:413
122
  msgid "SMTP Host"
123
  msgstr ""
124
 
125
+ #: wp_mail_smtp.php:421, wp_mail_smtp.php:539
126
  msgid "SMTP Port"
127
  msgstr ""
128
 
129
+ #: wp_mail_smtp.php:428, wp_mail_smtp.php:432, wp_mail_smtp.php:547, wp_mail_smtp.php:553
130
  msgid "Encryption"
131
  msgstr ""
132
 
133
+ #: wp_mail_smtp.php:437, wp_mail_smtp.php:559
134
  msgid "No encryption."
135
  msgstr ""
136
 
137
+ #: wp_mail_smtp.php:442, wp_mail_smtp.php:564
138
  msgid "Use SSL encryption."
139
  msgstr ""
140
 
141
+ #: wp_mail_smtp.php:447, wp_mail_smtp.php:569
142
  msgid "Use TLS encryption."
143
  msgstr ""
144
 
145
+ #: wp_mail_smtp.php:450
146
  msgid "TLS is not the same as STARTTLS. For most servers SSL is the recommended option."
147
  msgstr ""
148
 
149
+ #: wp_mail_smtp.php:455, wp_mail_smtp.php:459
150
  msgid "Authentication"
151
  msgstr ""
152
 
153
+ #: wp_mail_smtp.php:464
154
  msgid "No: Do not use SMTP authentication."
155
  msgstr ""
156
 
157
+ #: wp_mail_smtp.php:469
158
  msgid "Yes: Use SMTP authentication."
159
  msgstr ""
160
 
161
+ #: wp_mail_smtp.php:473
162
  msgid "If this is set to no, the values below are ignored."
163
  msgstr ""
164
 
165
+ #: wp_mail_smtp.php:480, wp_mail_smtp.php:523
166
  msgid "Username"
167
  msgstr ""
168
 
169
+ #: wp_mail_smtp.php:488, wp_mail_smtp.php:531
170
  msgid "Password"
171
  msgstr ""
172
 
173
+ #: wp_mail_smtp.php:494
174
  msgid "This is in plain text because it must not be stored encrypted."
175
  msgstr ""
176
 
177
+ #: wp_mail_smtp.php:508
178
  msgid "Pepipost SMTP Options"
179
  msgstr ""
180
 
181
+ #: wp_mail_smtp.php:514
182
  msgid "You need to signup on %s to get the SMTP username/password."
183
  msgstr ""
184
 
185
+ #: wp_mail_smtp.php:586
186
  msgid "Send a Test Email"
187
  msgstr ""
188
 
189
+ #: wp_mail_smtp.php:594
190
  msgid "To"
191
  msgstr ""
192
 
193
+ #: wp_mail_smtp.php:598
194
  msgid "Type an email address here and then click Send Test to generate a test email."
195
  msgstr ""
196
 
197
+ #: wp_mail_smtp.php:640
198
  msgid "WP Mail SMTP"
199
  msgstr ""
200
 
201
+ #: wp_mail_smtp.php:746
202
  msgid "Settings"
203
  msgstr ""
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: wpforms, smub, jaredatch, slaFFik
3
  Donate link: https://wpforms.com/
4
  Tags: mail, smtp, wp_mail, mailer, phpmailer
5
  Requires at least: 2.7
6
- Tested up to: 4.8
7
  Stable tag: trunk
8
 
9
  The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 700k sites.
@@ -93,13 +93,18 @@ By all means please contact us to discuss features or options you'd like to see
93
 
94
  == Changelog ==
95
 
 
 
 
 
96
  = [0.11.1] - 2017-10-30 =
97
- * Older PHP compatibility fix.
98
 
99
  = [0.11] - 2017-10-30 =
100
  * Added: Helper description to Return Path option.
101
  * Added: Filter `wp_mail_smtp_admin_test_email_smtp_debug` to increase the debug message verbosity.
102
  * Added: PHP 5.2 notice.
 
103
  * Changed: Localization fixes, proper locale name.
104
  * Changed: Code style improvements and optimizations for both HTML and PHP.
105
  * Changed: Inputs for emails now have a proper type `email`, instead of a generic `text`.
3
  Donate link: https://wpforms.com/
4
  Tags: mail, smtp, wp_mail, mailer, phpmailer
5
  Requires at least: 2.7
6
+ Tested up to: 4.9
7
  Stable tag: trunk
8
 
9
  The most popular WordPress SMTP and PHP Mailer plugin. Trusted by over 700k sites.
93
 
94
  == Changelog ==
95
 
96
+ = [0.11.2] - 2017-11-28 =
97
+ * Added: Setting to hide annoucement feed.
98
+ * Changed: Announcement feed data.
99
+
100
  = [0.11.1] - 2017-10-30 =
101
+ * Fixed: Older PHP compatibility fix.
102
 
103
  = [0.11] - 2017-10-30 =
104
  * Added: Helper description to Return Path option.
105
  * Added: Filter `wp_mail_smtp_admin_test_email_smtp_debug` to increase the debug message verbosity.
106
  * Added: PHP 5.2 notice.
107
+ * Added: Announcement feed.
108
  * Changed: Localization fixes, proper locale name.
109
  * Changed: Code style improvements and optimizations for both HTML and PHP.
110
  * Changed: Inputs for emails now have a proper type `email`, instead of a generic `text`.
wp_mail_smtp.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Plugin Name: WP Mail SMTP
4
- * Version: 0.11.1
5
  * Plugin URI: https://wpforms.com/
6
  * Description: Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
7
  * Author: WPForms
@@ -17,7 +17,7 @@
17
  * http://www.gnu.org/licenses/gpl.txt
18
  */
19
 
20
- define( 'WPMS_PLUGIN_VER', '0.11.1' );
21
 
22
  /**
23
  * Setting options in wp-config.php
@@ -47,20 +47,21 @@ define('WPMS_SMTP_PASS', 'password'); // SMTP authentication password, only used
47
  */
48
  global $wpms_options;
49
  $wpms_options = array(
50
- 'mail_from' => '',
51
- 'mail_from_name' => '',
52
- 'mailer' => 'smtp',
53
- 'mail_set_return_path' => 'false',
54
- 'smtp_host' => 'localhost',
55
- 'smtp_port' => '25',
56
- 'smtp_ssl' => 'none',
57
- 'smtp_auth' => false,
58
- 'smtp_user' => '',
59
- 'smtp_pass' => '',
60
- 'pepipost_user' => '',
61
- 'pepipost_pass' => '',
62
- 'pepipost_port' => '2525',
63
- 'pepipost_ssl' => 'none',
 
64
  );
65
 
66
  /**
@@ -376,6 +377,26 @@ if ( ! function_exists( 'wp_mail_smtp_options_page' ) ) :
376
  </tr>
377
  </table>
378
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
379
  <p class="submit">
380
  <input type="submit" name="submit" id="submit" class="button-primary" value="<?php _e( 'Save Changes', 'wp-mail-smtp' ); ?>"/>
381
  </p>
@@ -736,6 +757,12 @@ function wp_mail_plugin_action_links( $links, $file ) {
736
  */
737
  function wp_mail_smtp_am_notifications() {
738
 
 
 
 
 
 
 
739
  if ( ! class_exists( 'WPMS_AM_Notification' ) ) {
740
  require_once dirname( __FILE__ ) . '/class-wpms-am-notification.php';
741
  }
1
  <?php
2
  /**
3
  * Plugin Name: WP Mail SMTP
4
+ * Version: 0.11.2
5
  * Plugin URI: https://wpforms.com/
6
  * Description: Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage the settings.
7
  * Author: WPForms
17
  * http://www.gnu.org/licenses/gpl.txt
18
  */
19
 
20
+ define( 'WPMS_PLUGIN_VER', '0.11.2' );
21
 
22
  /**
23
  * Setting options in wp-config.php
47
  */
48
  global $wpms_options;
49
  $wpms_options = array(
50
+ 'mail_from' => '',
51
+ 'mail_from_name' => '',
52
+ 'mailer' => 'smtp',
53
+ 'mail_set_return_path' => 'false',
54
+ 'smtp_host' => 'localhost',
55
+ 'smtp_port' => '25',
56
+ 'smtp_ssl' => 'none',
57
+ 'smtp_auth' => false,
58
+ 'smtp_user' => '',
59
+ 'smtp_pass' => '',
60
+ 'pepipost_user' => '',
61
+ 'pepipost_pass' => '',
62
+ 'pepipost_port' => '2525',
63
+ 'pepipost_ssl' => 'none',
64
+ 'wp_mail_smtp_am_notifications_hidden' => '',
65
  );
66
 
67
  /**
377
  </tr>
378
  </table>
379
 
380
+ <table class="form-table">
381
+ <tr valign="top">
382
+ <th scope="row">
383
+ <?php _e( 'Hide Announcements', 'wp-mail-smtp' ); ?>
384
+ </th>
385
+ <td>
386
+ <fieldset>
387
+ <legend class="screen-reader-text">
388
+ <span><?php _e( 'Hide Announcements', 'wp-mail-smtp' ); ?></span>
389
+ </legend>
390
+
391
+ <label for="wp_mail_smtp_am_notifications_hidden">
392
+ <input name="wp_mail_smtp_am_notifications_hidden" type="checkbox" id="wp_mail_smtp_am_notifications_hidden" value="true" <?php checked( 'true', get_option( 'wp_mail_smtp_am_notifications_hidden' ) ); ?> />
393
+ <?php _e( 'Check this if you would like to hide plugin announcements and update details.', 'wp-mail-smtp' ); ?>
394
+ </label>
395
+ </fieldset>
396
+ </td>
397
+ </tr>
398
+ </table>
399
+
400
  <p class="submit">
401
  <input type="submit" name="submit" id="submit" class="button-primary" value="<?php _e( 'Save Changes', 'wp-mail-smtp' ); ?>"/>
402
  </p>
757
  */
758
  function wp_mail_smtp_am_notifications() {
759
 
760
+ $is_hidden = get_option( 'wp_mail_smtp_am_notifications_hidden', '' );
761
+
762
+ if ( 'true' === $is_hidden ) {
763
+ return;
764
+ }
765
+
766
  if ( ! class_exists( 'WPMS_AM_Notification' ) ) {
767
  require_once dirname( __FILE__ ) . '/class-wpms-am-notification.php';
768
  }