Version Description
- Easy WP SMTP is now compatible with WordPress 4.4.
Download this release
Release Info
| Developer | wpecommerce |
| Plugin | |
| Version | 1.2.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.1 to 1.2.2
- easy-wp-smtp.php +54 -44
- languages/easy-wp-smtp.mo +0 -0
- languages/easy-wp-smtp.pot +182 -0
- readme.txt +6 -2
easy-wp-smtp.php
CHANGED
|
@@ -1,11 +1,13 @@
|
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Easy WP SMTP
|
| 4 |
-
Version: 1.2.
|
| 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/
|
| 8 |
Description: Send email via SMTP from your WordPress Blog
|
|
|
|
|
|
|
| 9 |
*/
|
| 10 |
|
| 11 |
/**
|
|
@@ -15,8 +17,8 @@ Description: Send email via SMTP from your WordPress Blog
|
|
| 15 |
|
| 16 |
if ( ! function_exists( 'swpsmtp_admin_default_setup' ) ) {
|
| 17 |
function swpsmtp_admin_default_setup() {
|
| 18 |
-
//add_submenu_page( 'options-general.php', __( 'Easy WP SMTP', '
|
| 19 |
-
add_options_page(__('Easy WP SMTP', '
|
| 20 |
}
|
| 21 |
}
|
| 22 |
|
|
@@ -27,7 +29,7 @@ if ( ! function_exists( 'swpsmtp_admin_default_setup' ) ) {
|
|
| 27 |
if ( ! function_exists ( 'swpsmtp_admin_init' ) ) {
|
| 28 |
function swpsmtp_admin_init() {
|
| 29 |
/* Internationalization, first(!) */
|
| 30 |
-
load_plugin_textdomain( '
|
| 31 |
|
| 32 |
if ( isset( $_REQUEST['page'] ) && 'swpsmtp_settings' == $_REQUEST['page'] ) {
|
| 33 |
/* register plugin settings */
|
|
@@ -77,7 +79,7 @@ if ( ! function_exists ( 'swpsmtp_plugin_action_links' ) ) {
|
|
| 77 |
$this_plugin = plugin_basename( __FILE__ );
|
| 78 |
}
|
| 79 |
if ( $file == $this_plugin ) {
|
| 80 |
-
$settings_link = '<a href="options-general.php?page=swpsmtp_settings">' . __( 'Settings', '
|
| 81 |
array_unshift( $links, $settings_link );
|
| 82 |
}
|
| 83 |
return $links;
|
|
@@ -94,12 +96,19 @@ if ( ! function_exists ( 'swpsmtp_register_plugin_links' ) ) {
|
|
| 94 |
function swpsmtp_register_plugin_links( $links, $file ) {
|
| 95 |
$base = plugin_basename( __FILE__ );
|
| 96 |
if ( $file == $base ) {
|
| 97 |
-
$links[] = '<a href="options-general.php?page=swpsmtp_settings">' . __( 'Settings', '
|
| 98 |
}
|
| 99 |
return $links;
|
| 100 |
}
|
| 101 |
}
|
| 102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 103 |
|
| 104 |
/**
|
| 105 |
* Function to add plugin scripts
|
|
@@ -171,7 +180,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 171 |
$swpsmtp_options['from_email_field'] = $_POST['swpsmtp_from_email'];
|
| 172 |
}
|
| 173 |
else{
|
| 174 |
-
$error .= " " . __( "Please enter a valid email address in the 'FROM' field.", '
|
| 175 |
}
|
| 176 |
}
|
| 177 |
|
|
@@ -186,7 +195,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 186 |
if ( isset( $_POST['swpsmtp_smtp_port'] ) ) {
|
| 187 |
if ( empty( $_POST['swpsmtp_smtp_port'] ) || 1 > intval( $_POST['swpsmtp_smtp_port'] ) || ( ! preg_match( '/^\d+$/', $_POST['swpsmtp_smtp_port'] ) ) ) {
|
| 188 |
$swpsmtp_options['smtp_settings']['port'] = '25';
|
| 189 |
-
$error .= " " . __( "Please enter a valid port in the 'SMTP Port' field.", '
|
| 190 |
} else {
|
| 191 |
$swpsmtp_options['smtp_settings']['port'] = $_POST['swpsmtp_smtp_port'];
|
| 192 |
}
|
|
@@ -195,10 +204,10 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 195 |
/* Update settings in the database */
|
| 196 |
if ( empty( $error ) ) {
|
| 197 |
update_option( 'swpsmtp_options', $swpsmtp_options );
|
| 198 |
-
$message .= __( "Settings saved.", '
|
| 199 |
}
|
| 200 |
else{
|
| 201 |
-
$error .= " " . __( "Settings are not saved.", '
|
| 202 |
}
|
| 203 |
}
|
| 204 |
|
|
@@ -209,7 +218,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 209 |
$swpsmtp_to =$_POST['swpsmtp_to'];
|
| 210 |
}
|
| 211 |
else{
|
| 212 |
-
$error .= " " . __( "Please enter a valid email address in the 'FROM' field.", '
|
| 213 |
}
|
| 214 |
}
|
| 215 |
$swpsmtp_subject = isset( $_POST['swpsmtp_subject'] ) ? $_POST['swpsmtp_subject'] : '';
|
|
@@ -219,7 +228,7 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 219 |
} ?>
|
| 220 |
<div class="swpsmtp-mail wrap" id="swpsmtp-mail">
|
| 221 |
<div id="icon-options-general" class="icon32 icon32-bws"></div>
|
| 222 |
-
<h2><?php _e( "Easy WP SMTP Settings", '
|
| 223 |
<div class="update-nag">Please visit the <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> documentation page for usage instructions.</div>
|
| 224 |
<div class="updated fade" <?php if( empty( $message ) ) echo "style=\"display:none\""; ?>>
|
| 225 |
<p><strong><?php echo $message; ?></strong></p>
|
|
@@ -228,73 +237,73 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 228 |
<p><strong><?php echo $error; ?></strong></p>
|
| 229 |
</div>
|
| 230 |
<div id="swpsmtp-settings-notice" class="updated fade" style="display:none">
|
| 231 |
-
<p><strong><?php _e( "Notice:", '
|
| 232 |
</div>
|
| 233 |
-
<h3><?php _e( 'General Settings', '
|
| 234 |
<form id="swpsmtp_settings_form" method="post" action="">
|
| 235 |
<table class="form-table">
|
| 236 |
<tr valign="top">
|
| 237 |
-
<th scope="row"><?php _e( "From Email Address", '
|
| 238 |
<td>
|
| 239 |
<input type="text" name="swpsmtp_from_email" value="<?php echo esc_attr( $swpsmtp_options['from_email_field'] ); ?>"/><br />
|
| 240 |
-
<span class="swpsmtp_info"><?php _e( "This email address will be used in the 'From' field.", '
|
| 241 |
</td>
|
| 242 |
</tr>
|
| 243 |
<tr valign="top">
|
| 244 |
-
<th scope="row"><?php _e( "From Name", '
|
| 245 |
<td>
|
| 246 |
<input type="text" name="swpsmtp_from_name" value="<?php echo esc_attr($swpsmtp_options['from_name_field']); ?>"/><br />
|
| 247 |
-
<span class="swpsmtp_info"><?php _e( "This text will be used in the 'FROM' field", '
|
| 248 |
</td>
|
| 249 |
</tr>
|
| 250 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 251 |
-
<th><?php _e( 'SMTP Host', '
|
| 252 |
<td>
|
| 253 |
<input type='text' name='swpsmtp_smtp_host' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['host']); ?>' /><br />
|
| 254 |
-
<span class="swpsmtp_info"><?php _e( "Your mail server", '
|
| 255 |
</td>
|
| 256 |
</tr>
|
| 257 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 258 |
-
<th><?php _e( 'Type of Encription', '
|
| 259 |
<td>
|
| 260 |
-
<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( 'none' == $swpsmtp_options['smtp_settings']['type_encryption'] ) echo 'checked="checked"'; ?> /> <?php _e( 'None', '
|
| 261 |
-
<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( 'ssl' == $swpsmtp_options['smtp_settings']['type_encryption'] ) echo 'checked="checked"'; ?> /> <?php _e( 'SSL', '
|
| 262 |
-
<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( 'tls' == $swpsmtp_options['smtp_settings']['type_encryption'] ) echo 'checked="checked"'; ?> /> <?php _e( 'TLS', '
|
| 263 |
-
<span class="swpsmtp_info"><?php _e( "For most servers SSL is the recommended option", '
|
| 264 |
</td>
|
| 265 |
</tr>
|
| 266 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 267 |
-
<th><?php _e( 'SMTP Port', '
|
| 268 |
<td>
|
| 269 |
<input type='text' name='swpsmtp_smtp_port' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['port']); ?>' /><br />
|
| 270 |
-
<span class="swpsmtp_info"><?php _e( "The port to your mail server", '
|
| 271 |
</td>
|
| 272 |
</tr>
|
| 273 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 274 |
-
<th><?php _e( 'SMTP Authentication', '
|
| 275 |
<td>
|
| 276 |
-
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='no' <?php if( 'no' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'No', '
|
| 277 |
-
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='yes' <?php if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'Yes', '
|
| 278 |
-
<span class="swpsmtp_info"><?php _e( "This options should always be checked 'Yes'", '
|
| 279 |
</td>
|
| 280 |
</tr>
|
| 281 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 282 |
-
<th><?php _e( 'SMTP username', '
|
| 283 |
<td>
|
| 284 |
<input type='text' name='swpsmtp_smtp_username' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['username']); ?>' /><br />
|
| 285 |
-
<span class="swpsmtp_info"><?php _e( "The username to login to your mail server", '
|
| 286 |
</td>
|
| 287 |
</tr>
|
| 288 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 289 |
-
<th><?php _e( 'SMTP Password', '
|
| 290 |
<td>
|
| 291 |
<input type='password' name='swpsmtp_smtp_password' value='<?php echo swpsmtp_get_password(); ?>' /><br />
|
| 292 |
-
<span class="swpsmtp_info"><?php _e( "The password to login to your mail server", '
|
| 293 |
</td>
|
| 294 |
</tr>
|
| 295 |
</table>
|
| 296 |
<p class="submit">
|
| 297 |
-
<input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', '
|
| 298 |
<input type="hidden" name="swpsmtp_form_submit" value="submit" />
|
| 299 |
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
|
| 300 |
</p>
|
|
@@ -303,33 +312,33 @@ if ( ! function_exists( 'swpsmtp_settings' ) ) {
|
|
| 303 |
<div class="updated fade" <?php if( empty( $result ) ) echo "style=\"display:none\""; ?>>
|
| 304 |
<p><strong><?php echo $result; ?></strong></p>
|
| 305 |
</div>
|
| 306 |
-
<h3><?php _e( 'Testing And Debugging Settings', '
|
| 307 |
<form id="swpsmtp_settings_form" method="post" action="">
|
| 308 |
<table class="form-table">
|
| 309 |
<tr valign="top">
|
| 310 |
-
<th scope="row"><?php _e( "To", '
|
| 311 |
<td>
|
| 312 |
<input type="text" name="swpsmtp_to" value=""/><br />
|
| 313 |
-
<span class="swpsmtp_info"><?php _e( "Enter the email address to recipient", '
|
| 314 |
</td>
|
| 315 |
</tr>
|
| 316 |
<tr valign="top">
|
| 317 |
-
<th scope="row"><?php _e( "Subject", '
|
| 318 |
<td>
|
| 319 |
<input type="text" name="swpsmtp_subject" value=""/><br />
|
| 320 |
-
<span class="swpsmtp_info"><?php _e( "Enter a subject for your message", '
|
| 321 |
</td>
|
| 322 |
</tr>
|
| 323 |
<tr valign="top">
|
| 324 |
-
<th scope="row"><?php _e( "Message", '
|
| 325 |
<td>
|
| 326 |
<textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"></textarea><br />
|
| 327 |
-
<span class="swpsmtp_info"><?php _e( "Write your message", '
|
| 328 |
</td>
|
| 329 |
</tr>
|
| 330 |
</table>
|
| 331 |
<p class="submit">
|
| 332 |
-
<input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Send Test Email', '
|
| 333 |
<input type="hidden" name="swpsmtp_test_submit" value="submit" />
|
| 334 |
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
|
| 335 |
</p>
|
|
@@ -473,6 +482,7 @@ if ( ! function_exists( 'swpsmtp_credentials_configured' ) ) {
|
|
| 473 |
*/
|
| 474 |
|
| 475 |
add_filter( 'plugin_action_links', 'swpsmtp_plugin_action_links', 10, 2 );
|
|
|
|
| 476 |
add_filter( 'plugin_row_meta', 'swpsmtp_register_plugin_links', 10, 2 );
|
| 477 |
|
| 478 |
add_action( 'phpmailer_init','swpsmtp_init_smtp');
|
| 1 |
<?php
|
| 2 |
/*
|
| 3 |
Plugin Name: Easy WP SMTP
|
| 4 |
+
Version: 1.2.2
|
| 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/
|
| 8 |
Description: Send email via SMTP from your WordPress Blog
|
| 9 |
+
Text Domain: easy-wp-smtp
|
| 10 |
+
Domain Path: /languages
|
| 11 |
*/
|
| 12 |
|
| 13 |
/**
|
| 17 |
|
| 18 |
if ( ! function_exists( 'swpsmtp_admin_default_setup' ) ) {
|
| 19 |
function swpsmtp_admin_default_setup() {
|
| 20 |
+
//add_submenu_page( 'options-general.php', __( 'Easy WP SMTP', 'easy-wp-smtp' ), __( 'Easy WP SMTP', 'easy-wp-smtp' ), $capabilities, 'swpsmtp_settings', 'swpsmtp_settings' );
|
| 21 |
+
add_options_page(__('Easy WP SMTP', 'easy-wp-smtp'), __('Easy WP SMTP', 'easy-wp-smtp'), 'manage_options', 'swpsmtp_settings', 'swpsmtp_settings');
|
| 22 |
}
|
| 23 |
}
|
| 24 |
|
| 29 |
if ( ! function_exists ( 'swpsmtp_admin_init' ) ) {
|
| 30 |
function swpsmtp_admin_init() {
|
| 31 |
/* Internationalization, first(!) */
|
| 32 |
+
load_plugin_textdomain( 'easy-wp-smtp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
| 33 |
|
| 34 |
if ( isset( $_REQUEST['page'] ) && 'swpsmtp_settings' == $_REQUEST['page'] ) {
|
| 35 |
/* register plugin settings */
|
| 79 |
$this_plugin = plugin_basename( __FILE__ );
|
| 80 |
}
|
| 81 |
if ( $file == $this_plugin ) {
|
| 82 |
+
$settings_link = '<a href="options-general.php?page=swpsmtp_settings">' . __( 'Settings', 'easy-wp-smtp' ) . '</a>';
|
| 83 |
array_unshift( $links, $settings_link );
|
| 84 |
}
|
| 85 |
return $links;
|
| 96 |
function swpsmtp_register_plugin_links( $links, $file ) {
|
| 97 |
$base = plugin_basename( __FILE__ );
|
| 98 |
if ( $file == $base ) {
|
| 99 |
+
$links[] = '<a href="options-general.php?page=swpsmtp_settings">' . __( 'Settings', 'easy-wp-smtp' ) . '</a>';
|
| 100 |
}
|
| 101 |
return $links;
|
| 102 |
}
|
| 103 |
}
|
| 104 |
|
| 105 |
+
//plugins_loaded action hook handler
|
| 106 |
+
if( !function_exists ( 'swpsmtp_plugins_loaded_handler' ) ) {
|
| 107 |
+
function swpsmtp_plugins_loaded_handler() {
|
| 108 |
+
load_plugin_textdomain('easy-wp-smtp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/');
|
| 109 |
+
}
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
|
| 113 |
/**
|
| 114 |
* Function to add plugin scripts
|
| 180 |
$swpsmtp_options['from_email_field'] = $_POST['swpsmtp_from_email'];
|
| 181 |
}
|
| 182 |
else{
|
| 183 |
+
$error .= " " . __( "Please enter a valid email address in the 'FROM' field.", 'easy-wp-smtp' );
|
| 184 |
}
|
| 185 |
}
|
| 186 |
|
| 195 |
if ( isset( $_POST['swpsmtp_smtp_port'] ) ) {
|
| 196 |
if ( empty( $_POST['swpsmtp_smtp_port'] ) || 1 > intval( $_POST['swpsmtp_smtp_port'] ) || ( ! preg_match( '/^\d+$/', $_POST['swpsmtp_smtp_port'] ) ) ) {
|
| 197 |
$swpsmtp_options['smtp_settings']['port'] = '25';
|
| 198 |
+
$error .= " " . __( "Please enter a valid port in the 'SMTP Port' field.", 'easy-wp-smtp' );
|
| 199 |
} else {
|
| 200 |
$swpsmtp_options['smtp_settings']['port'] = $_POST['swpsmtp_smtp_port'];
|
| 201 |
}
|
| 204 |
/* Update settings in the database */
|
| 205 |
if ( empty( $error ) ) {
|
| 206 |
update_option( 'swpsmtp_options', $swpsmtp_options );
|
| 207 |
+
$message .= __( "Settings saved.", 'easy-wp-smtp' );
|
| 208 |
}
|
| 209 |
else{
|
| 210 |
+
$error .= " " . __( "Settings are not saved.", 'easy-wp-smtp' );
|
| 211 |
}
|
| 212 |
}
|
| 213 |
|
| 218 |
$swpsmtp_to =$_POST['swpsmtp_to'];
|
| 219 |
}
|
| 220 |
else{
|
| 221 |
+
$error .= " " . __( "Please enter a valid email address in the 'FROM' field.", 'easy-wp-smtp' );
|
| 222 |
}
|
| 223 |
}
|
| 224 |
$swpsmtp_subject = isset( $_POST['swpsmtp_subject'] ) ? $_POST['swpsmtp_subject'] : '';
|
| 228 |
} ?>
|
| 229 |
<div class="swpsmtp-mail wrap" id="swpsmtp-mail">
|
| 230 |
<div id="icon-options-general" class="icon32 icon32-bws"></div>
|
| 231 |
+
<h2><?php _e( "Easy WP SMTP Settings", 'easy-wp-smtp' ); ?></h2>
|
| 232 |
<div class="update-nag">Please visit the <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> documentation page for usage instructions.</div>
|
| 233 |
<div class="updated fade" <?php if( empty( $message ) ) echo "style=\"display:none\""; ?>>
|
| 234 |
<p><strong><?php echo $message; ?></strong></p>
|
| 237 |
<p><strong><?php echo $error; ?></strong></p>
|
| 238 |
</div>
|
| 239 |
<div id="swpsmtp-settings-notice" class="updated fade" style="display:none">
|
| 240 |
+
<p><strong><?php _e( "Notice:", 'easy-wp-smtp' ); ?></strong> <?php _e( "The plugin's settings have been changed. In order to save them please don't forget to click the 'Save Changes' button.", 'easy-wp-smtp' ); ?></p>
|
| 241 |
</div>
|
| 242 |
+
<h3><?php _e( 'General Settings', 'easy-wp-smtp' ); ?></h3>
|
| 243 |
<form id="swpsmtp_settings_form" method="post" action="">
|
| 244 |
<table class="form-table">
|
| 245 |
<tr valign="top">
|
| 246 |
+
<th scope="row"><?php _e( "From Email Address", 'easy-wp-smtp' ); ?></th>
|
| 247 |
<td>
|
| 248 |
<input type="text" name="swpsmtp_from_email" value="<?php echo esc_attr( $swpsmtp_options['from_email_field'] ); ?>"/><br />
|
| 249 |
+
<span class="swpsmtp_info"><?php _e( "This email address will be used in the 'From' field.", 'easy-wp-smtp' ); ?></span>
|
| 250 |
</td>
|
| 251 |
</tr>
|
| 252 |
<tr valign="top">
|
| 253 |
+
<th scope="row"><?php _e( "From Name", 'easy-wp-smtp' ); ?></th>
|
| 254 |
<td>
|
| 255 |
<input type="text" name="swpsmtp_from_name" value="<?php echo esc_attr($swpsmtp_options['from_name_field']); ?>"/><br />
|
| 256 |
+
<span class="swpsmtp_info"><?php _e( "This text will be used in the 'FROM' field", 'easy-wp-smtp' ); ?></span>
|
| 257 |
</td>
|
| 258 |
</tr>
|
| 259 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 260 |
+
<th><?php _e( 'SMTP Host', 'easy-wp-smtp' ); ?></th>
|
| 261 |
<td>
|
| 262 |
<input type='text' name='swpsmtp_smtp_host' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['host']); ?>' /><br />
|
| 263 |
+
<span class="swpsmtp_info"><?php _e( "Your mail server", 'easy-wp-smtp' ); ?></span>
|
| 264 |
</td>
|
| 265 |
</tr>
|
| 266 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 267 |
+
<th><?php _e( 'Type of Encription', 'easy-wp-smtp' ); ?></th>
|
| 268 |
<td>
|
| 269 |
+
<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( 'none' == $swpsmtp_options['smtp_settings']['type_encryption'] ) echo 'checked="checked"'; ?> /> <?php _e( 'None', 'easy-wp-smtp' ); ?></label>
|
| 270 |
+
<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( 'ssl' == $swpsmtp_options['smtp_settings']['type_encryption'] ) echo 'checked="checked"'; ?> /> <?php _e( 'SSL', 'easy-wp-smtp' ); ?></label>
|
| 271 |
+
<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( 'tls' == $swpsmtp_options['smtp_settings']['type_encryption'] ) echo 'checked="checked"'; ?> /> <?php _e( 'TLS', 'easy-wp-smtp' ); ?></label><br />
|
| 272 |
+
<span class="swpsmtp_info"><?php _e( "For most servers SSL is the recommended option", 'easy-wp-smtp' ); ?></span>
|
| 273 |
</td>
|
| 274 |
</tr>
|
| 275 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 276 |
+
<th><?php _e( 'SMTP Port', 'easy-wp-smtp' ); ?></th>
|
| 277 |
<td>
|
| 278 |
<input type='text' name='swpsmtp_smtp_port' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['port']); ?>' /><br />
|
| 279 |
+
<span class="swpsmtp_info"><?php _e( "The port to your mail server", 'easy-wp-smtp' ); ?></span>
|
| 280 |
</td>
|
| 281 |
</tr>
|
| 282 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 283 |
+
<th><?php _e( 'SMTP Authentication', 'easy-wp-smtp' ); ?></th>
|
| 284 |
<td>
|
| 285 |
+
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='no' <?php if( 'no' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'No', 'easy-wp-smtp' ); ?></label>
|
| 286 |
+
<label for="swpsmtp_smtp_autentication"><input type="radio" id="swpsmtp_smtp_autentication" name="swpsmtp_smtp_autentication" value='yes' <?php if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ) echo 'checked="checked"'; ?> /> <?php _e( 'Yes', 'easy-wp-smtp' ); ?></label><br />
|
| 287 |
+
<span class="swpsmtp_info"><?php _e( "This options should always be checked 'Yes'", 'easy-wp-smtp' ); ?></span>
|
| 288 |
</td>
|
| 289 |
</tr>
|
| 290 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 291 |
+
<th><?php _e( 'SMTP username', 'easy-wp-smtp' ); ?></th>
|
| 292 |
<td>
|
| 293 |
<input type='text' name='swpsmtp_smtp_username' value='<?php echo esc_attr($swpsmtp_options['smtp_settings']['username']); ?>' /><br />
|
| 294 |
+
<span class="swpsmtp_info"><?php _e( "The username to login to your mail server", 'easy-wp-smtp' ); ?></span>
|
| 295 |
</td>
|
| 296 |
</tr>
|
| 297 |
<tr class="ad_opt swpsmtp_smtp_options">
|
| 298 |
+
<th><?php _e( 'SMTP Password', 'easy-wp-smtp' ); ?></th>
|
| 299 |
<td>
|
| 300 |
<input type='password' name='swpsmtp_smtp_password' value='<?php echo swpsmtp_get_password(); ?>' /><br />
|
| 301 |
+
<span class="swpsmtp_info"><?php _e( "The password to login to your mail server", 'easy-wp-smtp' ); ?></span>
|
| 302 |
</td>
|
| 303 |
</tr>
|
| 304 |
</table>
|
| 305 |
<p class="submit">
|
| 306 |
+
<input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', 'easy-wp-smtp' ) ?>" />
|
| 307 |
<input type="hidden" name="swpsmtp_form_submit" value="submit" />
|
| 308 |
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
|
| 309 |
</p>
|
| 312 |
<div class="updated fade" <?php if( empty( $result ) ) echo "style=\"display:none\""; ?>>
|
| 313 |
<p><strong><?php echo $result; ?></strong></p>
|
| 314 |
</div>
|
| 315 |
+
<h3><?php _e( 'Testing And Debugging Settings', 'easy-wp-smtp' ); ?></h3>
|
| 316 |
<form id="swpsmtp_settings_form" method="post" action="">
|
| 317 |
<table class="form-table">
|
| 318 |
<tr valign="top">
|
| 319 |
+
<th scope="row"><?php _e( "To", 'easy-wp-smtp' ); ?>:</th>
|
| 320 |
<td>
|
| 321 |
<input type="text" name="swpsmtp_to" value=""/><br />
|
| 322 |
+
<span class="swpsmtp_info"><?php _e( "Enter the email address to recipient", 'easy-wp-smtp' ); ?></span>
|
| 323 |
</td>
|
| 324 |
</tr>
|
| 325 |
<tr valign="top">
|
| 326 |
+
<th scope="row"><?php _e( "Subject", 'easy-wp-smtp' ); ?>:</th>
|
| 327 |
<td>
|
| 328 |
<input type="text" name="swpsmtp_subject" value=""/><br />
|
| 329 |
+
<span class="swpsmtp_info"><?php _e( "Enter a subject for your message", 'easy-wp-smtp' ); ?></span>
|
| 330 |
</td>
|
| 331 |
</tr>
|
| 332 |
<tr valign="top">
|
| 333 |
+
<th scope="row"><?php _e( "Message", 'easy-wp-smtp' ); ?>:</th>
|
| 334 |
<td>
|
| 335 |
<textarea name="swpsmtp_message" id="swpsmtp_message" rows="5"></textarea><br />
|
| 336 |
+
<span class="swpsmtp_info"><?php _e( "Write your message", 'easy-wp-smtp' ); ?></span>
|
| 337 |
</td>
|
| 338 |
</tr>
|
| 339 |
</table>
|
| 340 |
<p class="submit">
|
| 341 |
+
<input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Send Test Email', 'easy-wp-smtp' ) ?>" />
|
| 342 |
<input type="hidden" name="swpsmtp_test_submit" value="submit" />
|
| 343 |
<?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
|
| 344 |
</p>
|
| 482 |
*/
|
| 483 |
|
| 484 |
add_filter( 'plugin_action_links', 'swpsmtp_plugin_action_links', 10, 2 );
|
| 485 |
+
add_action( 'plugins_loaded', 'swpsmtp_plugins_loaded_handler');
|
| 486 |
add_filter( 'plugin_row_meta', 'swpsmtp_register_plugin_links', 10, 2 );
|
| 487 |
|
| 488 |
add_action( 'phpmailer_init','swpsmtp_init_smtp');
|
languages/easy-wp-smtp.mo
ADDED
|
Binary file
|
languages/easy-wp-smtp.pot
ADDED
|
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: Easy WP SMTP\n"
|
| 4 |
+
"POT-Creation-Date: 2015-12-09 13:51+1000\n"
|
| 5 |
+
"PO-Revision-Date: 2015-12-09 13:51+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.5\n"
|
| 12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
| 13 |
+
"X-Poedit-Basepath: .\n"
|
| 14 |
+
"X-Poedit-SearchPath-0: .\n"
|
| 15 |
+
|
| 16 |
+
#: easy-wp-smtp.php:21
|
| 17 |
+
msgid "Easy WP SMTP"
|
| 18 |
+
msgstr ""
|
| 19 |
+
|
| 20 |
+
#: easy-wp-smtp.php:82 easy-wp-smtp.php:99
|
| 21 |
+
msgid "Settings"
|
| 22 |
+
msgstr ""
|
| 23 |
+
|
| 24 |
+
#: easy-wp-smtp.php:183 easy-wp-smtp.php:221
|
| 25 |
+
msgid "Please enter a valid email address in the 'FROM' field."
|
| 26 |
+
msgstr ""
|
| 27 |
+
|
| 28 |
+
#: easy-wp-smtp.php:198
|
| 29 |
+
msgid "Please enter a valid port in the 'SMTP Port' field."
|
| 30 |
+
msgstr ""
|
| 31 |
+
|
| 32 |
+
#: easy-wp-smtp.php:207
|
| 33 |
+
msgid "Settings saved."
|
| 34 |
+
msgstr ""
|
| 35 |
+
|
| 36 |
+
#: easy-wp-smtp.php:210
|
| 37 |
+
msgid "Settings are not saved."
|
| 38 |
+
msgstr ""
|
| 39 |
+
|
| 40 |
+
#: easy-wp-smtp.php:231
|
| 41 |
+
msgid "Easy WP SMTP Settings"
|
| 42 |
+
msgstr ""
|
| 43 |
+
|
| 44 |
+
#: easy-wp-smtp.php:240
|
| 45 |
+
msgid "Notice:"
|
| 46 |
+
msgstr ""
|
| 47 |
+
|
| 48 |
+
#: easy-wp-smtp.php:240
|
| 49 |
+
msgid ""
|
| 50 |
+
"The plugin's settings have been changed. In order to save them please don't "
|
| 51 |
+
"forget to click the 'Save Changes' button."
|
| 52 |
+
msgstr ""
|
| 53 |
+
|
| 54 |
+
#: easy-wp-smtp.php:242
|
| 55 |
+
msgid "General Settings"
|
| 56 |
+
msgstr ""
|
| 57 |
+
|
| 58 |
+
#: easy-wp-smtp.php:246
|
| 59 |
+
msgid "From Email Address"
|
| 60 |
+
msgstr ""
|
| 61 |
+
|
| 62 |
+
#: easy-wp-smtp.php:249
|
| 63 |
+
msgid "This email address will be used in the 'From' field."
|
| 64 |
+
msgstr ""
|
| 65 |
+
|
| 66 |
+
#: easy-wp-smtp.php:253
|
| 67 |
+
msgid "From Name"
|
| 68 |
+
msgstr ""
|
| 69 |
+
|
| 70 |
+
#: easy-wp-smtp.php:256
|
| 71 |
+
msgid "This text will be used in the 'FROM' field"
|
| 72 |
+
msgstr ""
|
| 73 |
+
|
| 74 |
+
#: easy-wp-smtp.php:260
|
| 75 |
+
msgid "SMTP Host"
|
| 76 |
+
msgstr ""
|
| 77 |
+
|
| 78 |
+
#: easy-wp-smtp.php:263
|
| 79 |
+
msgid "Your mail server"
|
| 80 |
+
msgstr ""
|
| 81 |
+
|
| 82 |
+
#: easy-wp-smtp.php:267
|
| 83 |
+
msgid "Type of Encription"
|
| 84 |
+
msgstr ""
|
| 85 |
+
|
| 86 |
+
#: easy-wp-smtp.php:269
|
| 87 |
+
msgid "None"
|
| 88 |
+
msgstr ""
|
| 89 |
+
|
| 90 |
+
#: easy-wp-smtp.php:270
|
| 91 |
+
msgid "SSL"
|
| 92 |
+
msgstr ""
|
| 93 |
+
|
| 94 |
+
#: easy-wp-smtp.php:271
|
| 95 |
+
msgid "TLS"
|
| 96 |
+
msgstr ""
|
| 97 |
+
|
| 98 |
+
#: easy-wp-smtp.php:272
|
| 99 |
+
msgid "For most servers SSL is the recommended option"
|
| 100 |
+
msgstr ""
|
| 101 |
+
|
| 102 |
+
#: easy-wp-smtp.php:276
|
| 103 |
+
msgid "SMTP Port"
|
| 104 |
+
msgstr ""
|
| 105 |
+
|
| 106 |
+
#: easy-wp-smtp.php:279
|
| 107 |
+
msgid "The port to your mail server"
|
| 108 |
+
msgstr ""
|
| 109 |
+
|
| 110 |
+
#: easy-wp-smtp.php:283
|
| 111 |
+
msgid "SMTP Authentication"
|
| 112 |
+
msgstr ""
|
| 113 |
+
|
| 114 |
+
#: easy-wp-smtp.php:285
|
| 115 |
+
msgid "No"
|
| 116 |
+
msgstr ""
|
| 117 |
+
|
| 118 |
+
#: easy-wp-smtp.php:286
|
| 119 |
+
msgid "Yes"
|
| 120 |
+
msgstr ""
|
| 121 |
+
|
| 122 |
+
#: easy-wp-smtp.php:287
|
| 123 |
+
msgid "This options should always be checked 'Yes'"
|
| 124 |
+
msgstr ""
|
| 125 |
+
|
| 126 |
+
#: easy-wp-smtp.php:291
|
| 127 |
+
msgid "SMTP username"
|
| 128 |
+
msgstr ""
|
| 129 |
+
|
| 130 |
+
#: easy-wp-smtp.php:294
|
| 131 |
+
msgid "The username to login to your mail server"
|
| 132 |
+
msgstr ""
|
| 133 |
+
|
| 134 |
+
#: easy-wp-smtp.php:298
|
| 135 |
+
msgid "SMTP Password"
|
| 136 |
+
msgstr ""
|
| 137 |
+
|
| 138 |
+
#: easy-wp-smtp.php:301
|
| 139 |
+
msgid "The password to login to your mail server"
|
| 140 |
+
msgstr ""
|
| 141 |
+
|
| 142 |
+
#: easy-wp-smtp.php:306
|
| 143 |
+
msgid "Save Changes"
|
| 144 |
+
msgstr ""
|
| 145 |
+
|
| 146 |
+
#: easy-wp-smtp.php:315
|
| 147 |
+
msgid "Testing And Debugging Settings"
|
| 148 |
+
msgstr ""
|
| 149 |
+
|
| 150 |
+
#: easy-wp-smtp.php:319
|
| 151 |
+
msgid "To"
|
| 152 |
+
msgstr ""
|
| 153 |
+
|
| 154 |
+
#: easy-wp-smtp.php:322
|
| 155 |
+
msgid "Enter the email address to recipient"
|
| 156 |
+
msgstr ""
|
| 157 |
+
|
| 158 |
+
#: easy-wp-smtp.php:326
|
| 159 |
+
msgid "Subject"
|
| 160 |
+
msgstr ""
|
| 161 |
+
|
| 162 |
+
#: easy-wp-smtp.php:329
|
| 163 |
+
msgid "Enter a subject for your message"
|
| 164 |
+
msgstr ""
|
| 165 |
+
|
| 166 |
+
#: easy-wp-smtp.php:333
|
| 167 |
+
msgid "Message"
|
| 168 |
+
msgstr ""
|
| 169 |
+
|
| 170 |
+
#: easy-wp-smtp.php:336
|
| 171 |
+
msgid "Write your message"
|
| 172 |
+
msgstr ""
|
| 173 |
+
|
| 174 |
+
#: easy-wp-smtp.php:341
|
| 175 |
+
msgid "Send Test Email"
|
| 176 |
+
msgstr ""
|
| 177 |
+
|
| 178 |
+
#: easy-wp-smtp.php:458
|
| 179 |
+
msgid ""
|
| 180 |
+
"Please configure your SMTP credentials in the settings in order to send "
|
| 181 |
+
"email using Easy WP SMTP plugin."
|
| 182 |
+
msgstr ""
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: wpecommerce
|
|
| 3 |
Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
|
| 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.
|
| 7 |
-
Stable tag: 1.2.
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
|
@@ -75,6 +75,10 @@ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
|
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
= 1.2.1 =
|
| 79 |
|
| 80 |
* Set SMTPAutoTLS to false by default as it might cause issues if the server is advertising TLS with an invalid certificate.
|
| 3 |
Donate link: https://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197
|
| 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.4
|
| 7 |
+
Stable tag: 1.2.2
|
| 8 |
License: GPLv2 or later
|
| 9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 10 |
|
| 75 |
|
| 76 |
== Changelog ==
|
| 77 |
|
| 78 |
+
= 1.2.2 =
|
| 79 |
+
|
| 80 |
+
* Easy WP SMTP is now compatible with WordPress 4.4.
|
| 81 |
+
|
| 82 |
= 1.2.1 =
|
| 83 |
|
| 84 |
* Set SMTPAutoTLS to false by default as it might cause issues if the server is advertising TLS with an invalid certificate.
|
