Easy WP SMTP - Version 1.3.5

Version Description

  • Added configurable option to force replace From Name. The plugin was force-replacing it regardless before, now you can configure this (thanks to daymobrew).
Download this release

Release Info

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

Code changes from version 1.3.3 to 1.3.5

Files changed (4) hide show
  1. easy-wp-smtp-admin-menu.php +274 -184
  2. easy-wp-smtp.php +18 -11
  3. languages/easy-wp-smtp.pot +91 -62
  4. readme.txt +10 -1
easy-wp-smtp-admin-menu.php CHANGED
@@ -69,7 +69,9 @@ function swpsmtp_settings() {
69
  $error .= " " . __( "Nonce check failed.", 'easy-wp-smtp' );
70
  }
71
  /* Update settings */
72
- $swpsmtp_options[ 'from_name_field' ] = isset( $_POST[ 'swpsmtp_from_name' ] ) ? sanitize_text_field( wp_unslash( $_POST[ 'swpsmtp_from_name' ] ) ) : '';
 
 
73
  if ( isset( $_POST[ 'swpsmtp_from_email' ] ) ) {
74
  if ( is_email( $_POST[ 'swpsmtp_from_email' ] ) ) {
75
  $swpsmtp_options[ 'from_email_field' ] = sanitize_email( $_POST[ 'swpsmtp_from_email' ] );
@@ -160,6 +162,34 @@ function swpsmtp_settings() {
160
  border: 1px dashed red;
161
  display: block;
162
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  </style>
164
  <div class="updated fade" <?php if ( empty( $message ) ) echo "style=\"display:none\""; ?>>
165
  <p><strong><?php echo $message; ?></strong></p>
@@ -177,200 +207,252 @@ function swpsmtp_settings() {
177
  <div class="swpsmtp-yellow-box">
178
  <?php _ex( sprintf( "Please visit the %s plugin's documentation page to learn how to use this plugin.", '<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>' ), '%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>', 'easy-wp-smtp' ); ?>
179
  </div>
180
-
181
- <form id="swpsmtp_settings_form" method="post" action="">
182
-
183
- <input type="hidden" id="swpsmtp-urlHash" name="swpsmtp-urlHash" value="">
184
-
185
- <div class="swpsmtp-tab-container" data-tab-name="smtp">
186
- <div class="postbox">
187
- <h3 class="hndle"><label for="title"><?php _e( 'SMTP Configuration Settings', 'easy-wp-smtp' ); ?></label></h3>
188
- <div class="inside">
189
-
190
- <p><?php _e( 'You can request your hosting provider for the SMTP details of your site. Use the SMTP details provided by your hosting provider to configure the following settings.', 'easy-wp-smtp' ) ?></p>
191
-
192
- <table class="form-table">
193
- <tr valign="top">
194
- <th scope="row"><?php _e( "From Email Address", 'easy-wp-smtp' ); ?></th>
195
- <td>
196
- <input type="text" name="swpsmtp_from_email" value="<?php echo isset( $swpsmtp_options[ 'from_email_field' ] ) ? esc_attr( $swpsmtp_options[ 'from_email_field' ] ) : ''; ?>"/><br />
197
- <p class="description"><?php _e( "This email address will be used in the 'From' field.", 'easy-wp-smtp' ); ?></p>
198
- </td>
199
- </tr>
200
- <tr valign="top">
201
- <th scope="row"><?php _e( "From Name", 'easy-wp-smtp' ); ?></th>
202
- <td>
203
- <input type="text" name="swpsmtp_from_name" value="<?php echo isset( $swpsmtp_options[ 'from_name_field' ] ) ? esc_attr( $swpsmtp_options[ 'from_name_field' ] ) : ''; ?>"/><br />
204
- <p class="description"><?php _e( "This text will be used in the 'FROM' field", 'easy-wp-smtp' ); ?></p>
205
- </td>
206
- </tr>
207
- <tr valign="top">
208
- <th scope="row"><?php _e( "Reply-To Email Address", 'easy-wp-smtp' ); ?></th>
209
- <td>
210
- <input type="email" name="swpsmtp_reply_to_email" value="<?php echo isset( $swpsmtp_options[ 'reply_to_email' ] ) ? esc_attr( $swpsmtp_options[ 'reply_to_email' ] ) : ''; ?>"/><br />
211
- <p class="description"><?php _e( "Optional. This email address will be used in the 'Reply-To' field of the email. Leave it blank to use 'From' email as the reply-to value.", 'easy-wp-smtp' ); ?></p>
212
- </td>
213
- </tr>
214
- <tr class="ad_opt swpsmtp_smtp_options">
215
- <th><?php _e( 'SMTP Host', 'easy-wp-smtp' ); ?></th>
216
- <td>
217
- <input type='text' name='swpsmtp_smtp_host' value='<?php echo isset( $swpsmtp_options[ 'smtp_settings' ][ 'host' ] ) ? esc_attr( $swpsmtp_options[ 'smtp_settings' ][ 'host' ] ) : ''; ?>' /><br />
218
- <p class="description"><?php _e( "Your mail server", 'easy-wp-smtp' ); ?></p>
219
- </td>
220
- </tr>
221
- <tr class="ad_opt swpsmtp_smtp_options">
222
- <th><?php _e( 'Type of Encryption', 'easy-wp-smtp' ); ?></th>
223
- <td>
224
- <label for="swpsmtp_smtp_type_encryption_1"><input type="radio" id="swpsmtp_smtp_type_encryption_1" name="swpsmtp_smtp_type_encryption" value='none' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) && 'none' == $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'None', 'easy-wp-smtp' ); ?></label>
225
- <label for="swpsmtp_smtp_type_encryption_2"><input type="radio" id="swpsmtp_smtp_type_encryption_2" name="swpsmtp_smtp_type_encryption" value='ssl' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) && 'ssl' == $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'SSL', 'easy-wp-smtp' ); ?></label>
226
- <label for="swpsmtp_smtp_type_encryption_3"><input type="radio" id="swpsmtp_smtp_type_encryption_3" name="swpsmtp_smtp_type_encryption" value='tls' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) && 'tls' == $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'TLS', 'easy-wp-smtp' ); ?></label><br />
227
- <p class="description"><?php _e( "For most servers SSL is the recommended option", 'easy-wp-smtp' ); ?></p>
228
- </td>
229
- </tr>
230
- <tr class="ad_opt swpsmtp_smtp_options">
231
- <th><?php _e( 'SMTP Port', 'easy-wp-smtp' ); ?></th>
232
- <td>
233
- <input type='text' name='swpsmtp_smtp_port' value='<?php echo isset( $swpsmtp_options[ 'smtp_settings' ][ 'port' ] ) ? esc_attr( $swpsmtp_options[ 'smtp_settings' ][ 'port' ] ) : ''; ?>' /><br />
234
- <p class="description"><?php _e( "The port to your mail server", 'easy-wp-smtp' ); ?></p>
235
- </td>
236
- </tr>
237
- <tr class="ad_opt swpsmtp_smtp_options">
238
- <th><?php _e( 'SMTP Authentication', 'easy-wp-smtp' ); ?></th>
239
- <td>
240
- <label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='no' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) && 'no' == $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'No', 'easy-wp-smtp' ); ?></label>
241
- <label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='yes' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) && 'yes' == $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'Yes', 'easy-wp-smtp' ); ?></label><br />
242
- <p class="description"><?php _e( "This options should always be checked 'Yes'", 'easy-wp-smtp' ); ?></p>
243
- </td>
244
- </tr>
245
- <tr class="ad_opt swpsmtp_smtp_options">
246
- <th><?php _e( 'SMTP Username', 'easy-wp-smtp' ); ?></th>
247
- <td>
248
- <input type='text' name='swpsmtp_smtp_username' value='<?php echo isset( $swpsmtp_options[ 'smtp_settings' ][ 'username' ] ) ? esc_attr( $swpsmtp_options[ 'smtp_settings' ][ 'username' ] ) : ''; ?>' /><br />
249
- <p class="description"><?php _e( "The username to login to your mail server", 'easy-wp-smtp' ); ?></p>
250
- </td>
251
- </tr>
252
- <tr class="ad_opt swpsmtp_smtp_options">
253
- <th><?php _e( 'SMTP Password', 'easy-wp-smtp' ); ?></th>
254
- <td>
255
- <input type='password' name='swpsmtp_smtp_password' value='<?php echo (swpsmtp_get_password() !== '' ? $gag_password : ''); ?>' /><br />
256
- <p class="description"><?php _e( "The password to login to your mail server", 'easy-wp-smtp' ); ?></p>
257
- </td>
258
- </tr>
259
- </table>
260
- <p class="submit">
261
- <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', 'easy-wp-smtp' ) ?>" />
262
- <input type="hidden" name="swpsmtp_form_submit" value="submit" />
263
- <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
264
- </p>
265
- </div><!-- end of inside -->
266
- </div><!-- end of postbox -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
267
  </div>
268
-
269
- <div class="swpsmtp-tab-container" data-tab-name="additional">
270
- <div class="postbox">
271
- <h3 class="hndle"><label for="title"><?php _e( 'Additional Settings (Optional)', 'easy-wp-smtp' ); ?></label></h3>
272
  <div class="inside">
273
- <table class="form-table">
274
- <tr valign="top">
275
- <th scope="row"><?php _e( "Don't Replace \"From\" Field", 'easy-wp-smtp' ); ?></th>
276
- <td>
277
- <input type="text" name="swpsmtp_email_ignore_list" value="<?php echo isset( $swpsmtp_options[ 'email_ignore_list' ] ) ? esc_attr( $swpsmtp_options[ 'email_ignore_list' ] ) : ''; ?>"/><br />
278
- <p class="description"><?php _e( "Comma separated emails list. Example value: email1@domain.com, email2@domain.com", "easy-wp-smtp" ); ?></p>
279
- <p class="description"><?php _e( "This option is useful when you are using several email aliases on your SMTP server. If you don't want your aliases to be replaced by the address specified in \"From\" field, enter them in this field.", 'easy-wp-smtp' ); ?></p>
280
- </td>
281
- </tr>
282
- <tr valign="top">
283
- <th scope="row"><?php _e( "Enable Domain Check", 'easy-wp-smtp' ); ?></th>
284
- <td>
285
- <input type="checkbox" id="swpsmtp_enable_domain_check" name="swpsmtp_enable_domain_check" value="1"<?php echo (isset( $swpsmtp_options[ 'enable_domain_check' ] ) && ($swpsmtp_options[ 'enable_domain_check' ])) ? ' checked' : ''; ?>/>
286
- <p class="description"><?php _e( "This option is usually used by developers only. SMTP settings will be used only if the site is running on following domain(s):", 'easy-wp-smtp' ); ?></p>
287
- <input type="text" name="swpsmtp_allowed_domains" value="<?php echo base64_decode_maybe( $swpsmtp_options[ 'allowed_domains' ] ); ?>"<?php echo (isset( $swpsmtp_options[ 'enable_domain_check' ] ) && ($swpsmtp_options[ 'enable_domain_check' ])) ? '' : ' disabled'; ?>/>
288
- <p class="description"><?php _e( "Coma-separated domains list. Example: domain1.com, domain2.com", 'easy-wp-smtp' ); ?></p>
289
- <p>
290
- <label><input type="checkbox" id="swpsmtp_block_all_emails" name="swpsmtp_block_all_emails" value="1"<?php echo (isset( $swpsmtp_options[ 'block_all_emails' ] ) && ($swpsmtp_options[ 'block_all_emails' ])) ? ' checked' : ''; ?><?php echo (isset( $swpsmtp_options[ 'enable_domain_check' ] ) && ($swpsmtp_options[ 'enable_domain_check' ])) ? '' : ' disabled'; ?>/> <?php _e( 'Block all emails', 'easy-wp-smtp' ); ?></label>
291
- </p>
292
- <p class="description"><?php _e( "When enabled, plugin attempts to block ALL emails from being sent out if domain mismtach." ); ?></p>
293
- </td>
294
- </tr>
295
- <tr valign="top">
296
- <th scope="row"><?php _e( "Allow Insecure SSL Certificates", 'easy-wp-smtp' ); ?></th>
297
- <td>
298
- <input type="checkbox" name="swpsmtp_insecure_ssl" value="1" <?php echo (isset( $swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ] ) && ($swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ])) ? 'checked' : ''; ?>/>
299
- <p class="description"><?php _e( "Allows insecure and self-signed SSL certificates on SMTP server. It's highly recommended to keep this option disabled.", 'easy-wp-smtp' ); ?></p>
300
- </td>
301
- </tr>
302
- <tr valign="top">
303
- <th scope="row"><?php _e( "Enable Debug Log", 'easy-wp-smtp' ); ?></th>
304
- <td>
305
- <input type="checkbox" name="swpsmtp_enable_debug" value="1" <?php echo (isset( $swpsmtp_options[ 'smtp_settings' ][ 'enable_debug' ] ) && ($swpsmtp_options[ 'smtp_settings' ][ 'enable_debug' ])) ? 'checked' : ''; ?>/>
306
- <p class="description"><?php _e( "Check this box to enable mail debug log", 'easy-wp-smtp' ); ?></p>
307
- <a href="<?php echo admin_url(); ?>?swpsmtp_action=view_log" target="_blank"><?php _e( 'View Log', 'easy-wp-smtp' ); ?></a> | <a style="color: red;" id="swpsmtp_clear_log_btn" href="#0"><?php _e( 'Clear Log', 'easy-wp-smtp' ); ?></a>
308
- </td>
309
- </tr>
310
- </table>
311
- <p class="submit">
312
- <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', 'easy-wp-smtp' ) ?>" />
313
- <input type="hidden" name="swpsmtp_form_submit" value="submit" />
314
- <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
315
- </p>
316
-
317
- </div><!-- end of inside -->
318
- </div><!-- end of postbox -->
319
  </div>
320
- </form>
321
-
322
- <div class="swpsmtp-tab-container" data-tab-name="testemail">
323
- <div class="postbox">
324
- <h3 class="hndle"><label for="title"><?php _e( 'Test Email', 'easy-wp-smtp' ); ?></label></h3>
325
- <div class="inside">
326
- <div id="swpsmtp-save-settings-notice"><span><b><?php _e( 'Notice:', 'easy-wp-smtp' ); ?></b> <?php _e( '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.', 'easy-wp-smtp' ); ?></span></div>
327
- <p><?php _e( '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.', 'easy-wp-smtp' ); ?></p>
328
- <p><b><?php _ex( 'Note:', '"Note" as in "Note: keep this in mind"', 'easy-wp-smtp' ); ?></b> <?php _e( 'debug log for this test email will be automatically displayed right after you send it. Test email also ignores "Enable Domain Check" option.', 'easy-wp-smtp' ); ?></p>
329
-
330
- <form id="swpsmtp_settings_form" method="post" action="">
331
- <table class="form-table">
332
- <tr valign="top">
333
- <th scope="row"><?php _e( "To", 'easy-wp-smtp' ); ?>:</th>
334
- <td>
335
- <input type="text" class="ignore-change" name="swpsmtp_to" value="<?php echo esc_html( $smtp_test_mail[ 'swpsmtp_to' ] ); ?>" /><br />
336
- <p class="description"><?php _e( "Enter the recipient's email address", 'easy-wp-smtp' ); ?></p>
337
- </td>
338
- </tr>
339
- <tr valign="top">
340
- <th scope="row"><?php _e( "Subject", 'easy-wp-smtp' ); ?>:</th>
341
- <td>
342
- <input type="text" class="ignore-change" name="swpsmtp_subject" value="<?php echo esc_html( $smtp_test_mail[ 'swpsmtp_subject' ] ); ?>" /><br />
343
- <p class="description"><?php _e( "Enter a subject for your message", 'easy-wp-smtp' ); ?></p>
344
- </td>
345
- </tr>
346
- <tr valign="top">
347
- <th scope="row"><?php _e( "Message", 'easy-wp-smtp' ); ?>:</th>
348
- <td>
349
- <textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"><?php echo stripslashes( esc_textarea( $smtp_test_mail[ 'swpsmtp_message' ] ) ); ?></textarea><br />
350
- <p class="description"><?php _e( "Write your email message", 'easy-wp-smtp' ); ?></p>
351
- </td>
352
- </tr>
353
- </table>
354
- <p class="submit">
355
- <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Send Test Email', 'easy-wp-smtp' ) ?>" />
356
- <input type="hidden" name="swpsmtp_test_submit" value="submit" />
357
- <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
358
- </p>
359
- </form>
360
- </div><!-- end of inside -->
361
- </div><!-- end of postbox -->
362
-
363
  </div>
364
  <div class="swpsmtp-yellow-box">
365
  <?php _ex( sprintf( "Please visit the %s plugin's documentation page to learn how to use this plugin.", '<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>' ), '%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>', 'easy-wp-smtp' ); ?>
366
  </div>
367
 
368
  <script>
369
- var swpsmtp_urlHash = window.location.hash.substr(1);
 
370
 
371
- if (swpsmtp_urlHash === '') {
372
- swpsmtp_urlHash = 'smtp';
 
 
 
 
 
 
 
 
373
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  jQuery(function ($) {
375
  var swpsmtp_activeTab = "";
376
  $('a.nav-tab').click(function (e) {
@@ -384,6 +466,14 @@ function swpsmtp_settings() {
384
  if (window.location.hash !== swpsmtp_activeTab) {
385
  window.location.hash = swpsmtp_activeTab;
386
  }
 
 
 
 
 
 
 
 
387
  }
388
  });
389
  $('a.nav-tab[data-tab-name="' + swpsmtp_urlHash + '"]').trigger('click');
69
  $error .= " " . __( "Nonce check failed.", 'easy-wp-smtp' );
70
  }
71
  /* Update settings */
72
+ $swpsmtp_options[ 'from_name_field' ] = isset( $_POST[ 'swpsmtp_from_name' ] ) ? sanitize_text_field( wp_unslash( $_POST[ 'swpsmtp_from_name' ] ) ) : '';
73
+ $swpsmtp_options[ 'force_from_name_replace' ] = isset( $_POST[ 'swpsmtp_force_from_name_replace' ] ) ? 1 : false;
74
+
75
  if ( isset( $_POST[ 'swpsmtp_from_email' ] ) ) {
76
  if ( is_email( $_POST[ 'swpsmtp_from_email' ] ) ) {
77
  $swpsmtp_options[ 'from_email_field' ] = sanitize_email( $_POST[ 'swpsmtp_from_email' ] );
162
  border: 1px dashed red;
163
  display: block;
164
  }
165
+ .swpsmtp-stars-container {
166
+ text-align: center;
167
+ margin-top: 10px;
168
+ }
169
+ .swpsmtp-stars-container span {
170
+ vertical-align: text-top;
171
+ color: #ffb900;
172
+ }
173
+ .swpsmtp-stars-container a {
174
+ text-decoration: none;
175
+ }
176
+ .swpsmtp-settings-grid {
177
+ display:inline-block;
178
+ }
179
+ .swpsmtp-settings-main-cont {
180
+ width: 80%;
181
+ }
182
+ .swpsmtp-settings-sidebar-cont {
183
+ width: 19%;
184
+ float: right;
185
+ }
186
+ @media (max-width: 782px) {
187
+ .swpsmtp-settings-grid {
188
+ display: block;
189
+ float: none;
190
+ width: 100%;
191
+ }
192
+ }
193
  </style>
194
  <div class="updated fade" <?php if ( empty( $message ) ) echo "style=\"display:none\""; ?>>
195
  <p><strong><?php echo $message; ?></strong></p>
207
  <div class="swpsmtp-yellow-box">
208
  <?php _ex( sprintf( "Please visit the %s plugin's documentation page to learn how to use this plugin.", '<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>' ), '%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>', 'easy-wp-smtp' ); ?>
209
  </div>
210
+ <div class="swpsmtp-settings-container">
211
+ <div class="swpsmtp-settings-grid swpsmtp-settings-main-cont">
212
+
213
+ <form id="swpsmtp_settings_form" method="post" action="">
214
+
215
+ <input type="hidden" id="swpsmtp-urlHash" name="swpsmtp-urlHash" value="">
216
+
217
+ <div class="swpsmtp-tab-container" data-tab-name="smtp">
218
+ <div class="postbox">
219
+ <h3 class="hndle"><label for="title"><?php _e( 'SMTP Configuration Settings', 'easy-wp-smtp' ); ?></label></h3>
220
+ <div class="inside">
221
+
222
+ <p><?php _e( 'You can request your hosting provider for the SMTP details of your site. Use the SMTP details provided by your hosting provider to configure the following settings.', 'easy-wp-smtp' ) ?></p>
223
+
224
+ <table class="form-table">
225
+ <tr valign="top">
226
+ <th scope="row"><?php _e( "From Email Address", 'easy-wp-smtp' ); ?></th>
227
+ <td>
228
+ <input id="swpsmtp_from_email" type="text" name="swpsmtp_from_email" value="<?php echo isset( $swpsmtp_options[ 'from_email_field' ] ) ? esc_attr( $swpsmtp_options[ 'from_email_field' ] ) : ''; ?>"/><br />
229
+ <p class="description"><?php _e( "This email address will be used in the 'From' field.", 'easy-wp-smtp' ); ?></p>
230
+ </td>
231
+ </tr>
232
+ <tr valign="top">
233
+ <th scope="row"><?php _e( "From Name", 'easy-wp-smtp' ); ?></th>
234
+ <td>
235
+ <input id="swpsmtp_from_name" type="text" name="swpsmtp_from_name" value="<?php echo isset( $swpsmtp_options[ 'from_name_field' ] ) ? esc_attr( $swpsmtp_options[ 'from_name_field' ] ) : ''; ?>"/><br />
236
+ <p class="description"><?php _e( "This text will be used in the 'FROM' field", 'easy-wp-smtp' ); ?></p>
237
+ <p>
238
+ <label><input type="checkbox" id="swpsmtp_force_from_name_replace" name="swpsmtp_force_from_name_replace" value="1"<?php echo (isset( $swpsmtp_options[ 'force_from_name_replace' ] ) && ($swpsmtp_options[ 'force_from_name_replace' ])) ? ' checked' : ''; ?>/> <?php _e( "Force From Name Replacement", 'easy-wp-smtp' ); ?></label>
239
+ </p>
240
+ <p class="description"><?php _e( "When enabled, the plugin will set the above From Name for each email. Disable it if you're using contact form plugins, it will prevent the plugin from replacing form submitter's name when contact email is sent.", 'easy-wp-smtp' ); ?>
241
+ <br />
242
+ <?php _e( "If email's From Name is empty, the plugin will set the above value regardless.", 'easy-wp-smtp' ); ?>
243
+ </p>
244
+ </td>
245
+ </tr>
246
+ <tr valign="top">
247
+ <th scope="row"><?php _e( "Reply-To Email Address", 'easy-wp-smtp' ); ?></th>
248
+ <td>
249
+ <input id="swpsmtp_reply_to_email" type="email" name="swpsmtp_reply_to_email" value="<?php echo isset( $swpsmtp_options[ 'reply_to_email' ] ) ? esc_attr( $swpsmtp_options[ 'reply_to_email' ] ) : ''; ?>"/><br />
250
+ <p class="description"><?php _e( "Optional. This email address will be used in the 'Reply-To' field of the email. Leave it blank to use 'From' email as the reply-to value.", 'easy-wp-smtp' ); ?></p>
251
+ </td>
252
+ </tr>
253
+ <tr class="ad_opt swpsmtp_smtp_options">
254
+ <th><?php _e( 'SMTP Host', 'easy-wp-smtp' ); ?></th>
255
+ <td>
256
+ <input id='swpsmtp_smtp_host' type='text' name='swpsmtp_smtp_host' value='<?php echo isset( $swpsmtp_options[ 'smtp_settings' ][ 'host' ] ) ? esc_attr( $swpsmtp_options[ 'smtp_settings' ][ 'host' ] ) : ''; ?>' /><br />
257
+ <p class="description"><?php _e( "Your mail server", 'easy-wp-smtp' ); ?></p>
258
+ </td>
259
+ </tr>
260
+ <tr class="ad_opt swpsmtp_smtp_options">
261
+ <th><?php _e( 'Type of Encryption', 'easy-wp-smtp' ); ?></th>
262
+ <td>
263
+ <label for="swpsmtp_smtp_type_encryption_1"><input type="radio" id="swpsmtp_smtp_type_encryption_1" name="swpsmtp_smtp_type_encryption" value='none' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) && 'none' == $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'None', 'easy-wp-smtp' ); ?></label>
264
+ <label for="swpsmtp_smtp_type_encryption_2"><input type="radio" id="swpsmtp_smtp_type_encryption_2" name="swpsmtp_smtp_type_encryption" value='ssl' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) && 'ssl' == $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'SSL', 'easy-wp-smtp' ); ?></label>
265
+ <label for="swpsmtp_smtp_type_encryption_3"><input type="radio" id="swpsmtp_smtp_type_encryption_3" name="swpsmtp_smtp_type_encryption" value='tls' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) && 'tls' == $swpsmtp_options[ 'smtp_settings' ][ 'type_encryption' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'TLS', 'easy-wp-smtp' ); ?></label><br />
266
+ <p class="description"><?php _e( "For most servers SSL is the recommended option", 'easy-wp-smtp' ); ?></p>
267
+ </td>
268
+ </tr>
269
+ <tr class="ad_opt swpsmtp_smtp_options">
270
+ <th><?php _e( 'SMTP Port', 'easy-wp-smtp' ); ?></th>
271
+ <td>
272
+ <input id='swpsmtp_smtp_port' type='text' name='swpsmtp_smtp_port' value='<?php echo isset( $swpsmtp_options[ 'smtp_settings' ][ 'port' ] ) ? esc_attr( $swpsmtp_options[ 'smtp_settings' ][ 'port' ] ) : ''; ?>' /><br />
273
+ <p class="description"><?php _e( "The port to your mail server", 'easy-wp-smtp' ); ?></p>
274
+ </td>
275
+ </tr>
276
+ <tr class="ad_opt swpsmtp_smtp_options">
277
+ <th><?php _e( 'SMTP Authentication', 'easy-wp-smtp' ); ?></th>
278
+ <td>
279
+ <label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication_1" name="swpsmtp_smtp_autentication" value='no' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) && 'no' == $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'No', 'easy-wp-smtp' ); ?></label>
280
+ <label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication_2" name="swpsmtp_smtp_autentication" value='yes' <?php if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) && 'yes' == $swpsmtp_options[ 'smtp_settings' ][ 'autentication' ] ) echo 'checked="checked"'; ?> /> <?php _e( 'Yes', 'easy-wp-smtp' ); ?></label><br />
281
+ <p class="description"><?php _e( "This options should always be checked 'Yes'", 'easy-wp-smtp' ); ?></p>
282
+ </td>
283
+ </tr>
284
+ <tr class="ad_opt swpsmtp_smtp_options">
285
+ <th><?php _e( 'SMTP Username', 'easy-wp-smtp' ); ?></th>
286
+ <td>
287
+ <input id='swpsmtp_smtp_username' type='text' name='swpsmtp_smtp_username' value='<?php echo isset( $swpsmtp_options[ 'smtp_settings' ][ 'username' ] ) ? esc_attr( $swpsmtp_options[ 'smtp_settings' ][ 'username' ] ) : ''; ?>' /><br />
288
+ <p class="description"><?php _e( "The username to login to your mail server", 'easy-wp-smtp' ); ?></p>
289
+ </td>
290
+ </tr>
291
+ <tr class="ad_opt swpsmtp_smtp_options">
292
+ <th><?php _e( 'SMTP Password', 'easy-wp-smtp' ); ?></th>
293
+ <td>
294
+ <input id = 'swpsmtp_smtp_password' type='password' name='swpsmtp_smtp_password' value='<?php echo (swpsmtp_get_password() !== '' ? $gag_password : ''); ?>' /><br />
295
+ <p class="description"><?php _e( "The password to login to your mail server", 'easy-wp-smtp' ); ?></p>
296
+ <p class="description"><b><?php _e( 'Note', 'easy-wp-smtp' ); ?></b>: <?php _e( 'when you click "Save Changes", your actual password is stored in the database and then used to send emails. This field is replaced with a gag (#easywpsmtpgagpass#). This is done to prevent someone with the access to Settings page from seeing your password (using password fields unmasking programs, for example).', 'easy-wp-smtp' ); ?></p>
297
+ </td>
298
+ </tr>
299
+ </table>
300
+ <p class="submit">
301
+ <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', 'easy-wp-smtp' ) ?>" />
302
+ <input type="hidden" name="swpsmtp_form_submit" value="submit" />
303
+ <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
304
+ </p>
305
+ </div><!-- end of inside -->
306
+ </div><!-- end of postbox -->
307
+ </div>
308
+
309
+ <div class="swpsmtp-tab-container" data-tab-name="additional">
310
+ <div class="postbox">
311
+ <h3 class="hndle"><label for="title"><?php _e( 'Additional Settings (Optional)', 'easy-wp-smtp' ); ?></label></h3>
312
+ <div class="inside">
313
+ <table class="form-table">
314
+ <tr valign="top">
315
+ <th scope="row"><?php _e( "Don't Replace \"From\" Field", 'easy-wp-smtp' ); ?></th>
316
+ <td>
317
+ <input id="swpsmtp_email_ignore_list" type="text" name="swpsmtp_email_ignore_list" value="<?php echo isset( $swpsmtp_options[ 'email_ignore_list' ] ) ? esc_attr( $swpsmtp_options[ 'email_ignore_list' ] ) : ''; ?>"/><br />
318
+ <p class="description"><?php _e( "Comma separated emails list. Example value: email1@domain.com, email2@domain.com", "easy-wp-smtp" ); ?></p>
319
+ <p class="description"><?php _e( "This option is useful when you are using several email aliases on your SMTP server. If you don't want your aliases to be replaced by the address specified in \"From\" field, enter them in this field.", 'easy-wp-smtp' ); ?></p>
320
+ </td>
321
+ </tr>
322
+ <tr valign="top">
323
+ <th scope="row"><?php _e( "Enable Domain Check", 'easy-wp-smtp' ); ?></th>
324
+ <td>
325
+ <input id="swpsmtp_enable_domain_check" type="checkbox" id="swpsmtp_enable_domain_check" name="swpsmtp_enable_domain_check" value="1"<?php echo (isset( $swpsmtp_options[ 'enable_domain_check' ] ) && ($swpsmtp_options[ 'enable_domain_check' ])) ? ' checked' : ''; ?>/>
326
+ <p class="description"><?php _e( "This option is usually used by developers only. SMTP settings will be used only if the site is running on following domain(s):", 'easy-wp-smtp' ); ?></p>
327
+ <input id="swpsmtp_allowed_domains" type="text" name="swpsmtp_allowed_domains" value="<?php echo base64_decode_maybe( $swpsmtp_options[ 'allowed_domains' ] ); ?>"<?php echo (isset( $swpsmtp_options[ 'enable_domain_check' ] ) && ($swpsmtp_options[ 'enable_domain_check' ])) ? '' : ' disabled'; ?>/>
328
+ <p class="description"><?php _e( "Coma-separated domains list. Example: domain1.com, domain2.com", 'easy-wp-smtp' ); ?></p>
329
+ <p>
330
+ <label><input type="checkbox" id="swpsmtp_block_all_emails" name="swpsmtp_block_all_emails" value="1"<?php echo (isset( $swpsmtp_options[ 'block_all_emails' ] ) && ($swpsmtp_options[ 'block_all_emails' ])) ? ' checked' : ''; ?><?php echo (isset( $swpsmtp_options[ 'enable_domain_check' ] ) && ($swpsmtp_options[ 'enable_domain_check' ])) ? '' : ' disabled'; ?>/> <?php _e( 'Block all emails', 'easy-wp-smtp' ); ?></label>
331
+ </p>
332
+ <p class="description"><?php _e( "When enabled, plugin attempts to block ALL emails from being sent out if domain mismtach." ); ?></p>
333
+ </td>
334
+ </tr>
335
+ <tr valign="top">
336
+ <th scope="row"><?php _e( "Allow Insecure SSL Certificates", 'easy-wp-smtp' ); ?></th>
337
+ <td>
338
+ <input id="swpsmtp_insecure_ssl" type="checkbox" name="swpsmtp_insecure_ssl" value="1" <?php echo (isset( $swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ] ) && ($swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ])) ? 'checked' : ''; ?>/>
339
+ <p class="description"><?php _e( "Allows insecure and self-signed SSL certificates on SMTP server. It's highly recommended to keep this option disabled.", 'easy-wp-smtp' ); ?></p>
340
+ </td>
341
+ </tr>
342
+ <tr valign="top">
343
+ <th scope="row"><?php _e( "Enable Debug Log", 'easy-wp-smtp' ); ?></th>
344
+ <td>
345
+ <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' : ''; ?>/>
346
+ <p class="description"><?php _e( "Check this box to enable mail debug log", 'easy-wp-smtp' ); ?></p>
347
+ <a href="<?php echo admin_url(); ?>?swpsmtp_action=view_log" target="_blank"><?php _e( 'View Log', 'easy-wp-smtp' ); ?></a> | <a style="color: red;" id="swpsmtp_clear_log_btn" href="#0"><?php _e( 'Clear Log', 'easy-wp-smtp' ); ?></a>
348
+ </td>
349
+ </tr>
350
+ </table>
351
+ <p class="submit">
352
+ <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', 'easy-wp-smtp' ) ?>" />
353
+ <input type="hidden" name="swpsmtp_form_submit" value="submit" />
354
+ <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
355
+ </p>
356
+
357
+ </div><!-- end of inside -->
358
+ </div><!-- end of postbox -->
359
+ </div>
360
+ </form>
361
+
362
+ <div class="swpsmtp-tab-container" data-tab-name="testemail">
363
+ <div class="postbox">
364
+ <h3 class="hndle"><label for="title"><?php _e( 'Test Email', 'easy-wp-smtp' ); ?></label></h3>
365
+ <div class="inside">
366
+ <div id="swpsmtp-save-settings-notice"><span><b><?php _e( 'Notice:', 'easy-wp-smtp' ); ?></b> <?php _e( '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.', 'easy-wp-smtp' ); ?></span></div>
367
+ <p><?php _e( '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.', 'easy-wp-smtp' ); ?></p>
368
+ <p><b><?php _ex( 'Note:', '"Note" as in "Note: keep this in mind"', 'easy-wp-smtp' ); ?></b> <?php _e( 'debug log for this test email will be automatically displayed right after you send it. Test email also ignores "Enable Domain Check" option.', 'easy-wp-smtp' ); ?></p>
369
+
370
+ <form id="swpsmtp_settings_form" method="post" action="">
371
+ <table class="form-table">
372
+ <tr valign="top">
373
+ <th scope="row"><?php _e( "To", 'easy-wp-smtp' ); ?>:</th>
374
+ <td>
375
+ <input id="swpsmtp_to" type="text" class="ignore-change" name="swpsmtp_to" value="<?php echo esc_html( $smtp_test_mail[ 'swpsmtp_to' ] ); ?>" /><br />
376
+ <p class="description"><?php _e( "Enter the recipient's email address", 'easy-wp-smtp' ); ?></p>
377
+ </td>
378
+ </tr>
379
+ <tr valign="top">
380
+ <th scope="row"><?php _e( "Subject", 'easy-wp-smtp' ); ?>:</th>
381
+ <td>
382
+ <input id="swpsmtp_subject" type="text" class="ignore-change" name="swpsmtp_subject" value="<?php echo esc_html( $smtp_test_mail[ 'swpsmtp_subject' ] ); ?>" /><br />
383
+ <p class="description"><?php _e( "Enter a subject for your message", 'easy-wp-smtp' ); ?></p>
384
+ </td>
385
+ </tr>
386
+ <tr valign="top">
387
+ <th scope="row"><?php _e( "Message", 'easy-wp-smtp' ); ?>:</th>
388
+ <td>
389
+ <textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"><?php echo stripslashes( esc_textarea( $smtp_test_mail[ 'swpsmtp_message' ] ) ); ?></textarea><br />
390
+ <p class="description"><?php _e( "Write your email message", 'easy-wp-smtp' ); ?></p>
391
+ </td>
392
+ </tr>
393
+ </table>
394
+ <p class="submit">
395
+ <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Send Test Email', 'easy-wp-smtp' ) ?>" />
396
+ <input type="hidden" name="swpsmtp_test_submit" value="submit" />
397
+ <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
398
+ </p>
399
+ </form>
400
+ </div><!-- end of inside -->
401
+ </div><!-- end of postbox -->
402
+
403
+ </div>
404
  </div>
405
+ <div class="swpsmtp-settings-grid swpsmtp-settings-sidebar-cont">
406
+ <div class="postbox" style="min-width: inherit;">
407
+ <h3 class="hndle"><label for="title"><?php _e( "Support", 'easy-wp-smtp' ); ?></label></h3>
 
408
  <div class="inside">
409
+ <?php echo sprintf( _x( "Having issues or difficulties? You can post your issue on the %s", '%s is replaced by "Support Forum" link', 'easy-wp-smtp' ), sprintf( '<a href="https://wordpress.org/support/plugin/easy-wp-smtp/" target="_blank">%s</a>', __( 'Support Forum', 'easy-wp-smtp' ) ) ); ?>
410
+ </div>
411
+ </div>
412
+ <div class="postbox" style="min-width: inherit;">
413
+ <h3 class="hndle"><label for="title"><?php _e( "Rate Us", 'easy-wp-smtp' ); ?></label></h3>
414
+ <div class="inside">
415
+ <?php echo sprintf( _x( 'Like the plugin? Please give us a %s', '%s is replaced by "rating" link', 'easy-wp-smtp' ), sprintf( '<a href="https://wordpress.org/support/plugin/easy-wp-smtp/reviews/#new-post" target="_blank">%s</a>', __( 'rating', 'easy-wp-smtp' ) ) ); ?>
416
+ <div class="swpsmtp-stars-container">
417
+ <a href="https://wordpress.org/support/plugin/easy-wp-smtp/reviews/#new-post" target="_blank"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span>
418
+ </a>
419
+ </div>
420
+ </div>
421
+ </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
422
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  </div>
424
  <div class="swpsmtp-yellow-box">
425
  <?php _ex( sprintf( "Please visit the %s plugin's documentation page to learn how to use this plugin.", '<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>' ), '%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>', 'easy-wp-smtp' ); ?>
426
  </div>
427
 
428
  <script>
429
+ function parseHash(hash) {
430
+ hash = hash.substring(1, hash.length);
431
 
432
+ var hashObj = [];
433
+
434
+ hash.split('&').forEach(function (q) {
435
+ console.log(q);
436
+ if (typeof q !== 'undefined') {
437
+ hashObj.push(q);
438
+ }
439
+ });
440
+
441
+ return hashObj;
442
  }
443
+
444
+ var swpsmtp_urlHash = 'smtp';
445
+ var swpsmtp_focusObj = false;
446
+ var swpsmtp_urlHashArr = parseHash(window.location.hash);
447
+
448
+ if (swpsmtp_urlHashArr[0] !== '') {
449
+ swpsmtp_urlHash = swpsmtp_urlHashArr[0];
450
+ }
451
+
452
+ if (swpsmtp_urlHashArr[1] !== "undefined") {
453
+ swpsmtp_focusObj = swpsmtp_urlHashArr[1];
454
+ }
455
+
456
  jQuery(function ($) {
457
  var swpsmtp_activeTab = "";
458
  $('a.nav-tab').click(function (e) {
466
  if (window.location.hash !== swpsmtp_activeTab) {
467
  window.location.hash = swpsmtp_activeTab;
468
  }
469
+ if (swpsmtp_focusObj) {
470
+ $('html, body').animate({
471
+ scrollTop: $('#' + swpsmtp_focusObj).offset().top
472
+ }, 'fast', function () {
473
+ $('#' + swpsmtp_focusObj).focus();
474
+ swpsmtp_focusObj = false;
475
+ });
476
+ }
477
  }
478
  });
479
  $('a.nav-tab[data-tab-name="' + swpsmtp_urlHash + '"]').trigger('click');
easy-wp-smtp.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Easy WP SMTP
4
- Version: 1.3.3
5
  Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
6
  Author: wpecommerce
7
  Author URI: https://wp-ecommerce.net/
@@ -142,8 +142,12 @@ if ( ! function_exists( 'swpsmtp_init_smtp' ) ) {
142
  }
143
  /* Set the mailer type as per config above, this overrides the already called isMail method */
144
  $phpmailer->IsSMTP();
145
- $from_name = $swpsmtp_options[ 'from_name_field' ];
146
- $from_email = $swpsmtp_options[ 'from_email_field' ];
 
 
 
 
147
  //set ReplyTo option if needed
148
  //this should be set before SetFrom, otherwise might be ignored
149
  if ( ! empty( $swpsmtp_options[ 'reply_to_email' ] ) ) {
@@ -196,7 +200,7 @@ if ( ! function_exists( 'swpsmtp_init_smtp' ) ) {
196
  //PHPMailer 5.2.10 introduced this option. However, this might cause issues if the server is advertising TLS with an invalid certificate.
197
  $phpmailer->SMTPAutoTLS = false;
198
 
199
- if ( isset( $swpsmtp_options[ 'insecure_ssl' ] ) && $swpsmtp_options[ 'insecure_ssl' ] !== false ) {
200
  // Insecure SSL option enabled
201
  $phpmailer->SMTPOptions = array(
202
  'ssl' => array(
@@ -260,7 +264,7 @@ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
260
  /* PHPMailer 5.2.10 introduced this option. However, this might cause issues if the server is advertising TLS with an invalid certificate. */
261
  $mail->SMTPAutoTLS = false;
262
 
263
- if ( isset( $swpsmtp_options[ 'insecure_ssl' ] ) && $swpsmtp_options[ 'insecure_ssl' ] !== false ) {
264
  // Insecure SSL option enabled
265
  $mail->SMTPOptions = array(
266
  'ssl' => array(
@@ -388,9 +392,10 @@ if ( ! function_exists( 'swpsmtp_send_uninstall' ) ) {
388
 
389
  function swpsmtp_activate() {
390
  $swpsmtp_options_default = array(
391
- 'from_email_field' => '',
392
- 'from_name_field' => '',
393
- 'smtp_settings' => array(
 
394
  'host' => 'smtp.example.com',
395
  'type_encryption' => 'none',
396
  'port' => 25,
@@ -401,10 +406,12 @@ function swpsmtp_activate() {
401
  );
402
 
403
  /* install the default plugin options if needed */
404
- if ( ! get_option( 'swpsmtp_options' ) ) {
405
- add_option( 'swpsmtp_options', $swpsmtp_options_default, '', 'yes' );
406
- }
407
  $swpsmtp_options = get_option( 'swpsmtp_options' );
 
 
 
 
 
408
  //add current domain to allowed domains list
409
  if ( ! isset( $swpsmtp_options[ 'allowed_domains' ] ) ) {
410
  $domain = parse_url( get_site_url(), PHP_URL_HOST );
1
  <?php
2
  /*
3
  Plugin Name: Easy WP SMTP
4
+ Version: 1.3.5
5
  Plugin URI: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
6
  Author: wpecommerce
7
  Author URI: https://wp-ecommerce.net/
142
  }
143
  /* Set the mailer type as per config above, this overrides the already called isMail method */
144
  $phpmailer->IsSMTP();
145
+ if ( isset( $swpsmtp_options[ 'force_from_name_replace' ] ) && $swpsmtp_options[ 'force_from_name_replace' ] === 1 ) {
146
+ $from_name = $swpsmtp_options[ 'from_name_field' ];
147
+ } else {
148
+ $from_name = ! empty( $phpmailer->FromName ) ? $phpmailer->FromName : $swpsmtp_options[ 'from_name_field' ];
149
+ }
150
+ $from_email = $swpsmtp_options[ 'from_email_field' ];
151
  //set ReplyTo option if needed
152
  //this should be set before SetFrom, otherwise might be ignored
153
  if ( ! empty( $swpsmtp_options[ 'reply_to_email' ] ) ) {
200
  //PHPMailer 5.2.10 introduced this option. However, this might cause issues if the server is advertising TLS with an invalid certificate.
201
  $phpmailer->SMTPAutoTLS = false;
202
 
203
+ if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ] ) && $swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ] !== false ) {
204
  // Insecure SSL option enabled
205
  $phpmailer->SMTPOptions = array(
206
  'ssl' => array(
264
  /* PHPMailer 5.2.10 introduced this option. However, this might cause issues if the server is advertising TLS with an invalid certificate. */
265
  $mail->SMTPAutoTLS = false;
266
 
267
+ if ( isset( $swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ] ) && $swpsmtp_options[ 'smtp_settings' ][ 'insecure_ssl' ] !== false ) {
268
  // Insecure SSL option enabled
269
  $mail->SMTPOptions = array(
270
  'ssl' => array(
392
 
393
  function swpsmtp_activate() {
394
  $swpsmtp_options_default = array(
395
+ 'from_email_field' => '',
396
+ 'from_name_field' => '',
397
+ 'force_from_name_replace' => 1,
398
+ 'smtp_settings' => array(
399
  'host' => 'smtp.example.com',
400
  'type_encryption' => 'none',
401
  'port' => 25,
406
  );
407
 
408
  /* install the default plugin options if needed */
 
 
 
409
  $swpsmtp_options = get_option( 'swpsmtp_options' );
410
+ if ( ! $swpsmtp_options ) {
411
+ $swpsmtp_options = array();
412
+ }
413
+ $swpsmtp_options = array_merge( $swpsmtp_options_default, $swpsmtp_options );
414
+ update_option( 'swpsmtp_options', $swpsmtp_options, 'yes' );
415
  //add current domain to allowed domains list
416
  if ( ! isset( $swpsmtp_options[ 'allowed_domains' ] ) ) {
417
  $domain = parse_url( get_site_url(), PHP_URL_HOST );
languages/easy-wp-smtp.pot CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Easy WP SMTP\n"
4
- "POT-Creation-Date: 2018-01-07 22:14+1000\n"
5
- "PO-Revision-Date: 2018-01-07 22:14+1000\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "X-Generator: Poedit 1.5.7\n"
12
- "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
@@ -45,255 +45,284 @@ msgstr ""
45
  msgid "Please enter a valid email address in the recipient email field."
46
  msgstr ""
47
 
48
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:172
49
  msgid "SMTP Settings"
50
  msgstr ""
51
 
52
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:173
53
  msgid "Additional Settings"
54
  msgstr ""
55
 
56
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:174
57
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:324
58
  msgid "Test Email"
59
  msgstr ""
60
 
61
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:187
62
  msgid "SMTP Configuration Settings"
63
  msgstr ""
64
 
65
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:190
66
  msgid ""
67
  "You can request your hosting provider for the SMTP details of your site. Use "
68
  "the SMTP details provided by your hosting provider to configure the "
69
  "following settings."
70
  msgstr ""
71
 
72
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:194
73
  msgid "From Email Address"
74
  msgstr ""
75
 
76
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:197
77
  msgid "This email address will be used in the 'From' field."
78
  msgstr ""
79
 
80
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:201
81
  msgid "From Name"
82
  msgstr ""
83
 
84
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:204
85
  msgid "This text will be used in the 'FROM' field"
86
  msgstr ""
87
 
88
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:208
89
  msgid "Reply-To Email Address"
90
  msgstr ""
91
 
92
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:211
93
  msgid ""
94
  "Optional. This email address will be used in the 'Reply-To' field of the "
95
  "email. Leave it blank to use 'From' email as the reply-to value."
96
  msgstr ""
97
 
98
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:215
99
  msgid "SMTP Host"
100
  msgstr ""
101
 
102
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:218
103
  msgid "Your mail server"
104
  msgstr ""
105
 
106
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:222
107
  msgid "Type of Encryption"
108
  msgstr ""
109
 
110
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:224
111
  msgid "None"
112
  msgstr ""
113
 
114
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:225
115
  msgid "SSL"
116
  msgstr ""
117
 
118
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:226
119
  msgid "TLS"
120
  msgstr ""
121
 
122
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:227
123
  msgid "For most servers SSL is the recommended option"
124
  msgstr ""
125
 
126
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:231
127
  msgid "SMTP Port"
128
  msgstr ""
129
 
130
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:234
131
  msgid "The port to your mail server"
132
  msgstr ""
133
 
134
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:238
135
  msgid "SMTP Authentication"
136
  msgstr ""
137
 
138
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:240
139
  msgid "No"
140
  msgstr ""
141
 
142
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:241
143
  msgid "Yes"
144
  msgstr ""
145
 
146
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:242
147
  msgid "This options should always be checked 'Yes'"
148
  msgstr ""
149
 
150
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:246
151
  msgid "SMTP Username"
152
  msgstr ""
153
 
154
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:249
155
  msgid "The username to login to your mail server"
156
  msgstr ""
157
 
158
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:253
159
  msgid "SMTP Password"
160
  msgstr ""
161
 
162
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:256
163
  msgid "The password to login to your mail server"
164
  msgstr ""
165
 
166
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:261
167
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:312
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  msgid "Save Changes"
169
  msgstr ""
170
 
171
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:271
172
  msgid "Additional Settings (Optional)"
173
  msgstr ""
174
 
175
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:275
176
  msgid "Don't Replace \"From\" Field"
177
  msgstr ""
178
 
179
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:278
180
  msgid ""
181
  "Comma separated emails list. Example value: email1@domain.com, email2@domain."
182
  "com"
183
  msgstr ""
184
 
185
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:279
186
  msgid ""
187
  "This option is useful when you are using several email aliases on your SMTP "
188
  "server. If you don't want your aliases to be replaced by the address "
189
  "specified in \"From\" field, enter them in this field."
190
  msgstr ""
191
 
192
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:283
193
  msgid "Enable Domain Check"
194
  msgstr ""
195
 
196
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:286
197
  msgid ""
198
  "This option is usually used by developers only. SMTP settings will be used "
199
  "only if the site is running on following domain(s):"
200
  msgstr ""
201
 
202
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:288
203
  msgid "Coma-separated domains list. Example: domain1.com, domain2.com"
204
  msgstr ""
205
 
206
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:290
207
  msgid "Block all emails"
208
  msgstr ""
209
 
210
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:292
211
  msgid ""
212
  "When enabled, plugin attempts to block ALL emails from being sent out if "
213
  "domain mismtach."
214
  msgstr ""
215
 
216
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:296
217
  msgid "Allow Insecure SSL Certificates"
218
  msgstr ""
219
 
220
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:299
221
  msgid ""
222
  "Allows insecure and self-signed SSL certificates on SMTP server. It's highly "
223
  "recommended to keep this option disabled."
224
  msgstr ""
225
 
226
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:303
227
  msgid "Enable Debug Log"
228
  msgstr ""
229
 
230
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:306
231
  msgid "Check this box to enable mail debug log"
232
  msgstr ""
233
 
234
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:307
235
  msgid "View Log"
236
  msgstr ""
237
 
238
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:307
239
  msgid "Clear Log"
240
  msgstr ""
241
 
242
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:326
243
  msgid "Notice:"
244
  msgstr ""
245
 
246
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:326
247
  msgid ""
248
  "You have unsaved settings. In order to send a test email, you need to go "
249
  "back to previous tab and click \"Save Changes\" button first."
250
  msgstr ""
251
 
252
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:327
253
  msgid ""
254
  "You can use this section to send an email from your server using the above "
255
  "configured SMTP details to see if the email gets delivered."
256
  msgstr ""
257
 
258
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:328
259
  msgid ""
260
  "debug log for this test email will be automatically displayed right after "
261
  "you send it. Test email also ignores \"Enable Domain Check\" option."
262
  msgstr ""
263
 
264
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:333
265
  msgid "To"
266
  msgstr ""
267
 
268
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:336
269
  msgid "Enter the recipient's email address"
270
  msgstr ""
271
 
272
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:340
273
  msgid "Subject"
274
  msgstr ""
275
 
276
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:343
277
  msgid "Enter a subject for your message"
278
  msgstr ""
279
 
280
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:347
281
  msgid "Message"
282
  msgstr ""
283
 
284
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:350
285
  msgid "Write your email message"
286
  msgstr ""
287
 
288
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:355
289
  msgid "Send Test Email"
290
  msgstr ""
291
 
292
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
293
  msgid "Are you sure want to clear log?"
294
  msgstr ""
295
 
296
- #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:411
297
  msgid "Log cleared."
298
  msgstr ""
299
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Easy WP SMTP\n"
4
+ "POT-Creation-Date: 2018-01-18 18:02+1000\n"
5
+ "PO-Revision-Date: 2018-01-18 18:02+1000\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "X-Generator: Poedit 1.5.7\n"
12
+ "X-Poedit-KeywordsList: _e;__\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
45
  msgid "Please enter a valid email address in the recipient email field."
46
  msgstr ""
47
 
48
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:200
49
  msgid "SMTP Settings"
50
  msgstr ""
51
 
52
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:201
53
  msgid "Additional Settings"
54
  msgstr ""
55
 
56
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:202
57
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:355
58
  msgid "Test Email"
59
  msgstr ""
60
 
61
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:217
62
  msgid "SMTP Configuration Settings"
63
  msgstr ""
64
 
65
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:220
66
  msgid ""
67
  "You can request your hosting provider for the SMTP details of your site. Use "
68
  "the SMTP details provided by your hosting provider to configure the "
69
  "following settings."
70
  msgstr ""
71
 
72
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:224
73
  msgid "From Email Address"
74
  msgstr ""
75
 
76
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:227
77
  msgid "This email address will be used in the 'From' field."
78
  msgstr ""
79
 
80
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:231
81
  msgid "From Name"
82
  msgstr ""
83
 
84
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:234
85
  msgid "This text will be used in the 'FROM' field"
86
  msgstr ""
87
 
88
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:238
89
  msgid "Reply-To Email Address"
90
  msgstr ""
91
 
92
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:241
93
  msgid ""
94
  "Optional. This email address will be used in the 'Reply-To' field of the "
95
  "email. Leave it blank to use 'From' email as the reply-to value."
96
  msgstr ""
97
 
98
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:245
99
  msgid "SMTP Host"
100
  msgstr ""
101
 
102
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:248
103
  msgid "Your mail server"
104
  msgstr ""
105
 
106
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:252
107
  msgid "Type of Encryption"
108
  msgstr ""
109
 
110
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:254
111
  msgid "None"
112
  msgstr ""
113
 
114
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:255
115
  msgid "SSL"
116
  msgstr ""
117
 
118
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:256
119
  msgid "TLS"
120
  msgstr ""
121
 
122
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:257
123
  msgid "For most servers SSL is the recommended option"
124
  msgstr ""
125
 
126
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:261
127
  msgid "SMTP Port"
128
  msgstr ""
129
 
130
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:264
131
  msgid "The port to your mail server"
132
  msgstr ""
133
 
134
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:268
135
  msgid "SMTP Authentication"
136
  msgstr ""
137
 
138
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:270
139
  msgid "No"
140
  msgstr ""
141
 
142
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:271
143
  msgid "Yes"
144
  msgstr ""
145
 
146
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:272
147
  msgid "This options should always be checked 'Yes'"
148
  msgstr ""
149
 
150
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:276
151
  msgid "SMTP Username"
152
  msgstr ""
153
 
154
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:279
155
  msgid "The username to login to your mail server"
156
  msgstr ""
157
 
158
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:283
159
  msgid "SMTP Password"
160
  msgstr ""
161
 
162
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:286
163
  msgid "The password to login to your mail server"
164
  msgstr ""
165
 
166
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:287
167
+ msgid "Note"
168
+ msgstr ""
169
+
170
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:287
171
+ msgid ""
172
+ "when you click \"Save Changes\", your actual password is stored in the "
173
+ "database and then used to send emails. This field is replaced with a gag "
174
+ "(#easywpsmtpgagpass#). This is done to prevent someone with the access to "
175
+ "Settings page from seeing your password (using password fields unmasking "
176
+ "programs, for example)."
177
+ msgstr ""
178
+
179
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:292
180
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:343
181
  msgid "Save Changes"
182
  msgstr ""
183
 
184
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:302
185
  msgid "Additional Settings (Optional)"
186
  msgstr ""
187
 
188
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:306
189
  msgid "Don't Replace \"From\" Field"
190
  msgstr ""
191
 
192
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:309
193
  msgid ""
194
  "Comma separated emails list. Example value: email1@domain.com, email2@domain."
195
  "com"
196
  msgstr ""
197
 
198
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:310
199
  msgid ""
200
  "This option is useful when you are using several email aliases on your SMTP "
201
  "server. If you don't want your aliases to be replaced by the address "
202
  "specified in \"From\" field, enter them in this field."
203
  msgstr ""
204
 
205
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:314
206
  msgid "Enable Domain Check"
207
  msgstr ""
208
 
209
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:317
210
  msgid ""
211
  "This option is usually used by developers only. SMTP settings will be used "
212
  "only if the site is running on following domain(s):"
213
  msgstr ""
214
 
215
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:319
216
  msgid "Coma-separated domains list. Example: domain1.com, domain2.com"
217
  msgstr ""
218
 
219
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:321
220
  msgid "Block all emails"
221
  msgstr ""
222
 
223
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:323
224
  msgid ""
225
  "When enabled, plugin attempts to block ALL emails from being sent out if "
226
  "domain mismtach."
227
  msgstr ""
228
 
229
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:327
230
  msgid "Allow Insecure SSL Certificates"
231
  msgstr ""
232
 
233
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:330
234
  msgid ""
235
  "Allows insecure and self-signed SSL certificates on SMTP server. It's highly "
236
  "recommended to keep this option disabled."
237
  msgstr ""
238
 
239
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:334
240
  msgid "Enable Debug Log"
241
  msgstr ""
242
 
243
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:337
244
  msgid "Check this box to enable mail debug log"
245
  msgstr ""
246
 
247
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:338
248
  msgid "View Log"
249
  msgstr ""
250
 
251
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:338
252
  msgid "Clear Log"
253
  msgstr ""
254
 
255
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:357
256
  msgid "Notice:"
257
  msgstr ""
258
 
259
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:357
260
  msgid ""
261
  "You have unsaved settings. In order to send a test email, you need to go "
262
  "back to previous tab and click \"Save Changes\" button first."
263
  msgstr ""
264
 
265
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:358
266
  msgid ""
267
  "You can use this section to send an email from your server using the above "
268
  "configured SMTP details to see if the email gets delivered."
269
  msgstr ""
270
 
271
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:359
272
  msgid ""
273
  "debug log for this test email will be automatically displayed right after "
274
  "you send it. Test email also ignores \"Enable Domain Check\" option."
275
  msgstr ""
276
 
277
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:364
278
  msgid "To"
279
  msgstr ""
280
 
281
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:367
282
  msgid "Enter the recipient's email address"
283
  msgstr ""
284
 
285
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:371
286
  msgid "Subject"
287
  msgstr ""
288
 
289
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:374
290
  msgid "Enter a subject for your message"
291
  msgstr ""
292
 
293
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:378
294
  msgid "Message"
295
  msgstr ""
296
 
297
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:381
298
  msgid "Write your email message"
299
  msgstr ""
300
 
301
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:386
302
  msgid "Send Test Email"
303
  msgstr ""
304
 
305
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:398
306
+ msgid "Support"
307
+ msgstr ""
308
+
309
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:400
310
+ msgid "Support Forum"
311
+ msgstr ""
312
+
313
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:404
314
+ msgid "Rate Us"
315
+ msgstr ""
316
+
317
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:406
318
+ msgid "rating"
319
+ msgstr ""
320
+
321
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:484
322
  msgid "Are you sure want to clear log?"
323
  msgstr ""
324
 
325
+ #: easy-wp-smtp/easy-wp-smtp-admin-menu.php:492
326
  msgid "Log cleared."
327
  msgstr ""
328
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-
4
  Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mail, privacy, security, sendmail, ssl, tls, wp-phpmailer, mail smtp, wp smtp
5
  Requires at least: 4.3
6
  Tested up to: 4.9
7
- Stable tag: 1.3.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -77,6 +77,15 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
 
 
 
80
  = 1.3.3 =
81
  * Added option to allow insecure SSL certificate usage on SMTP server (thanks to ravipatel and bradclarke365).
82
  * Changing fields on Test Email tab is no longer shows "you have unsaved settings" notice.
4
  Tags: mail, wordpress smtp, phpmailer, smtp, wp_mail, email, gmail, outgoing mail, privacy, security, sendmail, ssl, tls, wp-phpmailer, mail smtp, wp smtp
5
  Requires at least: 4.3
6
  Tested up to: 4.9
7
+ Stable tag: 1.3.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
77
 
78
  == Changelog ==
79
 
80
+ = 1.3.5 =
81
+ * Added configurable option to force replace From Name. The plugin was force-replacing it regardless before, now you can configure this (thanks to daymobrew).
82
+
83
+ = 1.3.4 =
84
+ * Fixed "Allow Insecure SSL Certificates" option was ignored (thanks to bogesman).
85
+ * Added password gag explanation to SMTP Password field.
86
+ * Added Support Forum link.
87
+ * Some minor improvements to Settings page.
88
+
89
  = 1.3.3 =
90
  * Added option to allow insecure SSL certificate usage on SMTP server (thanks to ravipatel and bradclarke365).
91
  * Changing fields on Test Email tab is no longer shows "you have unsaved settings" notice.