Easy WP SMTP - Version 1.0.8

Version Description

  • Plugin now works with WordPress 3.9
Download this release

Release Info

Developer wpecommerce
Plugin Icon 128x128 Easy WP SMTP
Version 1.0.8
Comparing to
See all releases

Code changes from version 1.0.7 to 1.0.8

Files changed (7) hide show
  1. css/style.css +13 -0
  2. easy-wp-smtp.php +480 -0
  3. easy_wp_smtp.php +0 -69
  4. easy_wp_smtp_admin.php +0 -301
  5. js/script.js +13 -0
  6. readme.txt +113 -104
  7. screenshot-1.png +0 -0
css/style.css ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * Settings page
3
+ */
4
+ .swpsmtp_info {
5
+ font-size: 10px;
6
+ color: #888;
7
+ }
8
+
9
+ input[type='text'],
10
+ input[type='password'],
11
+ textarea{
12
+ width: 250px;
13
+ }
easy-wp-smtp.php ADDED
@@ -0,0 +1,480 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Easy WP SMTP
4
+ Version: 1.0.8
5
+ Plugin URI: http://wp-ecommerce.net/?p=2197
6
+ Author: wpecommerce
7
+ Author URI: http://wp-ecommerce.net/
8
+ Description: Send email via SMTP from your WordPress Blog
9
+ */
10
+
11
+ /**
12
+ * Add menu and submenu.
13
+ * @return void
14
+ */
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', 'easy_wp_smtp' ), __( 'Easy WP SMTP', 'easy_wp_smtp' ), $capabilities, 'swpsmtp_settings', 'swpsmtp_settings' );
19
+ add_options_page(__('Easy WP SMTP', 'easy_wp_smtp'), __('Easy WP SMTP', 'easy_wp_smtp'), 'manage_options', 'swpsmtp_settings', 'swpsmtp_settings');
20
+ }
21
+ }
22
+
23
+ /**
24
+ * Plugin functions for init
25
+ * @return void
26
+ */
27
+ if ( ! function_exists ( 'swpsmtp_admin_init' ) ) {
28
+ function swpsmtp_admin_init() {
29
+ global $swpsmtp_plugin_info;
30
+ /* Internationalization, first(!) */
31
+ load_plugin_textdomain( 'easy_wp_smtp', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
32
+
33
+ if ( ! $swpsmtp_plugin_info )
34
+ $swpsmtp_plugin_info = get_plugin_data( __FILE__ );
35
+
36
+ /* check WordPress version */
37
+ swpsmtp_version_check();
38
+
39
+ if ( isset( $_REQUEST['page'] ) && 'swpsmtp_settings' == $_REQUEST['page'] ) {
40
+ /* register plugin settings */
41
+ swpsmtp_register_settings();
42
+ }
43
+ }
44
+ }
45
+
46
+ /**
47
+ * Function check if plugin is compatible with current WP version
48
+ * @return void
49
+ */
50
+ if ( ! function_exists ( 'swpsmtp_version_check' ) ) {
51
+ function swpsmtp_version_check() {
52
+ global $wp_version, $swpsmtp_plugin_info;
53
+ $require_wp = "3.5"; /* Wordpress at least requires version */
54
+ $plugin = plugin_basename( __FILE__ );
55
+ if ( version_compare( $wp_version, $require_wp, "<" ) ) {
56
+ if ( is_plugin_active( $plugin ) ) {
57
+ deactivate_plugins( $plugin );
58
+ wp_die( "<strong>" . $swpsmtp_plugin_info['Name'] . " </strong> " . __( 'requires', 'easy_wp_smtp' ) . " <strong>WordPress " . $require_wp . "</strong> " . __( 'or higher, that is why it has been deactivated! Please upgrade WordPress and try again.', 'easy_wp_smtp') . "<br /><br />" . __( 'Back to the WordPress', 'easy_wp_smtp') . " <a href='" . get_admin_url( null, 'plugins.php' ) . "'>" . __( 'Plugins page', 'easy_wp_smtp') . "</a>." );
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ /**
65
+ * Register settings function
66
+ * @return void
67
+ */
68
+ if ( ! function_exists( 'swpsmtp_register_settings' ) ) {
69
+ function swpsmtp_register_settings() {
70
+ global $wpmu, $wpdb, $swpsmtp_options, $swpsmtp_options_default, $swpsmtp_plugin_info;
71
+
72
+ $swpsmtp_plugin_info = get_plugin_data( __FILE__, false );
73
+
74
+ $swpsmtp_options_default = array(
75
+ 'plugin_option_version' => $swpsmtp_plugin_info["Version"],
76
+ 'from_email_field' => '',
77
+ 'from_name_field' => '',
78
+ 'smtp_settings' => array(
79
+ 'host' => 'smtp.example.com',
80
+ 'type_encryption' => 'none',
81
+ 'port' => 25,
82
+ 'autentication' => 'yes',
83
+ 'username' => 'yourusername',
84
+ 'password' => 'yourpassword'
85
+ )
86
+ );
87
+
88
+ /* install the default plugin options */
89
+ if ( 1 == $wpmu ) {
90
+ if ( ! get_site_option( 'swpsmtp_options' ) )
91
+ add_site_option( 'swpsmtp_options', $swpsmtp_options_default, '', 'yes' );
92
+ } else {
93
+ if ( ! get_option( 'swpsmtp_options' ) )
94
+ add_option( 'swpsmtp_options', $swpsmtp_options_default, '', 'yes' );
95
+ }
96
+
97
+ /* get plugin options from the database */
98
+ $swpsmtp_options = is_multisite() ? get_site_option( 'swpsmtp_options' ) : get_option( 'swpsmtp_options' );
99
+ //$swpsmtp_options = get_option( 'swpsmtp_options' );
100
+
101
+ if ( $swpsmtp_options['plugin_option_version'] != $swpsmtp_plugin_info["Version"] ) {
102
+ $swpsmtp_options = array_merge( $swpsmtp_options_default, $swpsmtp_options );
103
+ $swpsmtp_options['plugin_option_version'] = $swpsmtp_plugin_info["Version"];
104
+ update_option( 'swpsmtp_options', $swpsmtp_options );
105
+ }
106
+ }
107
+ }
108
+
109
+
110
+ /**
111
+ * Add action links on plugin page in to Plugin Name block
112
+ * @param $links array() action links
113
+ * @param $file string relative path to pugin "easy-wp-smtp/easy-wp-smtp.php"
114
+ * @return $links array() action links
115
+ */
116
+ if ( ! function_exists ( 'swpsmtp_plugin_action_links' ) ) {
117
+ function swpsmtp_plugin_action_links( $links, $file ) {
118
+ /* Static so we don't call plugin_basename on every plugin row. */
119
+ static $this_plugin;
120
+ if ( ! $this_plugin ) {
121
+ $this_plugin = plugin_basename( __FILE__ );
122
+ }
123
+ if ( $file == $this_plugin ) {
124
+ $settings_link = '<a href="options-general.php?page=swpsmtp_settings">' . __( 'Settings', 'easy_wp_smtp' ) . '</a>';
125
+ array_unshift( $links, $settings_link );
126
+ }
127
+ return $links;
128
+ }
129
+ }
130
+
131
+ /**
132
+ * Add action links on plugin page in to Plugin Description block
133
+ * @param $links array() action links
134
+ * @param $file string relative path to pugin "easy-wp-smtp/easy-wp-smtp.php"
135
+ * @return $links array() action links
136
+ */
137
+ if ( ! function_exists ( 'swpsmtp_register_plugin_links' ) ) {
138
+ function swpsmtp_register_plugin_links( $links, $file ) {
139
+ $base = plugin_basename( __FILE__ );
140
+ if ( $file == $base ) {
141
+ $links[] = '<a href="options-general.php?page=swpsmtp_settings">' . __( 'Settings', 'easy_wp_smtp' ) . '</a>';
142
+ }
143
+ return $links;
144
+ }
145
+ }
146
+
147
+
148
+ /**
149
+ * Function to add plugin scripts
150
+ * @return void
151
+ */
152
+ if ( ! function_exists ( 'swpsmtp_admin_head' ) ) {
153
+ function swpsmtp_admin_head() {
154
+ wp_enqueue_style( 'swpsmtp_stylesheet', plugins_url( 'css/style.css', __FILE__ ) );
155
+
156
+ if ( isset( $_REQUEST['page'] ) && 'swpsmtp_settings' == $_REQUEST['page'] ) {
157
+ wp_enqueue_script( 'swpsmtp_script', plugins_url( 'js/script.js', __FILE__ ), array( 'jquery' ) );
158
+ }
159
+ }
160
+ }
161
+
162
+ /**
163
+ * Function to add smtp options in the phpmailer_init
164
+ * @return void
165
+ */
166
+ if ( ! function_exists ( 'swpsmtp_init_smtp' ) ) {
167
+ function swpsmtp_init_smtp( $phpmailer ) {
168
+ global $wpmu, $swpsmtp_options;
169
+
170
+ if ( empty( $swpsmtp_options ) ) {
171
+ $swpsmtp_options = ( 1 == $wpmu ) ? get_site_option( 'swpsmtp_options' ) : get_option( 'swpsmtp_options' );
172
+ }
173
+
174
+ /* Check that mailer is not blank, and if mailer=smtp, host is not blank */
175
+ if ( $swpsmtp_options['smtp_settings']['host'] == '' ) {
176
+ return;
177
+ }
178
+
179
+ /* Set the mailer type as per config above, this overrides the already called isMail method */
180
+ $phpmailer->IsSMTP();
181
+
182
+ /* Set the SMTPSecure value */
183
+ if ( $swpsmtp_options['smtp_settings']['type_encryption'] !== 'none' ) {
184
+ $phpmailer->SMTPSecure = $swpsmtp_options['smtp_settings']['type_encryption'];
185
+ }
186
+
187
+ /* Set the other options */
188
+ $phpmailer->Host = $swpsmtp_options['smtp_settings']['host'];
189
+ $phpmailer->Port = $swpsmtp_options['smtp_settings']['port'];
190
+
191
+ /* If we're using smtp auth, set the username & password */
192
+ if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
193
+ $phpmailer->SMTPAuth = true;
194
+ $phpmailer->Username = $swpsmtp_options['smtp_settings']['username'];
195
+ $phpmailer->Password = $swpsmtp_options['smtp_settings']['password'];
196
+ }
197
+ }
198
+ }
199
+
200
+ /**
201
+ * View function the settings to send messages.
202
+ * @return void
203
+ */
204
+ if ( ! function_exists( 'swpsmtp_settings' ) ) {
205
+ function swpsmtp_settings() {
206
+ global $wp_version, $wpdb, $wpmu, $swpsmtp_options, $swpsmtp_options_default, $title, $swpsmtp_plugin_info;
207
+ $display_add_options = $message = $error = $result = '';
208
+
209
+ if ( empty( $swpsmtp_options ) ) {
210
+ $swpsmtp_options = ( 1 == $wpmu ) ? get_site_option( 'swpsmtp_options' ) : get_option( 'swpsmtp_options' );
211
+ }
212
+
213
+ if ( isset( $_POST['swpsmtp_form_submit'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ) ) {
214
+ /* Update settings */
215
+ $swpsmtp_options['from_name_field'] = isset( $_POST['swpsmtp_from_name'] ) ? $_POST['swpsmtp_from_name'] : '';
216
+ if( isset( $_POST['swpsmtp_from_email'] ) ){
217
+ if( is_email( $_POST['swpsmtp_from_email'] ) ){
218
+ $swpsmtp_options['from_email_field'] = $_POST['swpsmtp_from_email'];
219
+ }
220
+ else{
221
+ $error .= " " . __( "Please enter a valid email address in the 'FROM' field.", 'easy_wp_smtp' );
222
+ }
223
+ }
224
+
225
+ $swpsmtp_options['smtp_settings']['host'] = $_POST['swpsmtp_smtp_host'];
226
+ $swpsmtp_options['smtp_settings']['type_encryption'] = ( isset( $_POST['swpsmtp_smtp_type_encryption'] ) ) ? $_POST['swpsmtp_smtp_type_encryption'] : 'none' ;
227
+ $swpsmtp_options['smtp_settings']['autentication'] = ( isset( $_POST['swpsmtp_smtp_autentication'] ) ) ? $_POST['swpsmtp_smtp_autentication'] : 'yes' ;
228
+ $swpsmtp_options['smtp_settings']['username'] = $_POST['swpsmtp_smtp_username'];
229
+ $swpsmtp_options['smtp_settings']['password'] = $_POST['swpsmtp_smtp_password'];
230
+
231
+ /* Check value from "SMTP port" option */
232
+ if ( isset( $_POST['swpsmtp_smtp_port'] ) ) {
233
+ if ( empty( $_POST['swpsmtp_smtp_port'] ) || 1 > intval( $_POST['swpsmtp_smtp_port'] ) || ( ! preg_match( '/^\d+$/', $_POST['swpsmtp_smtp_port'] ) ) ) {
234
+ $swpsmtp_options['smtp_settings']['port'] = '25';
235
+ $error .= " " . __( "Please enter a valid port in the 'SMTP Port' field.", 'easy_wp_smtp' );
236
+ } else {
237
+ $swpsmtp_options['smtp_settings']['port'] = $_POST['swpsmtp_smtp_port'];
238
+ }
239
+ } else {
240
+ $swpsmtp_options['smtp_settings']['port'] = $swpsmtp_options_default['smtp_settings']['port'];
241
+ }
242
+
243
+ /* Update settings in the database */
244
+ if ( empty( $error ) ) {
245
+ if ( is_multisite() ) {
246
+ update_site_option( 'swpsmtp_options', $swpsmtp_options );
247
+ } else {
248
+ update_option( 'swpsmtp_options', $swpsmtp_options );
249
+ }
250
+ $message .= __( "Settings saved.", 'easy_wp_smtp' );
251
+ }
252
+ else{
253
+ $error .= " " . __( "Settings are not saved.", 'easy_wp_smtp' );
254
+ }
255
+ }
256
+
257
+ /* Send test letter */
258
+ if ( isset( $_POST['swpsmtp_test_submit'] ) && check_admin_referer( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ) ) {
259
+ if( isset( $_POST['swpsmtp_to'] ) ){
260
+ if( is_email( $_POST['swpsmtp_to'] ) ){
261
+ $swpsmtp_to =$_POST['swpsmtp_to'];
262
+ }
263
+ else{
264
+ $error .= " " . __( "Please enter a valid email address in the 'FROM' field.", 'easy_wp_smtp' );
265
+ }
266
+ }
267
+ $swpsmtp_subject = isset( $_POST['swpsmtp_subject'] ) ? $_POST['swpsmtp_subject'] : '';
268
+ $swpsmtp_message = isset( $_POST['swpsmtp_message'] ) ? $_POST['swpsmtp_message'] : '';
269
+ if( ! empty( $swpsmtp_to ) )
270
+ $result = swpsmtp_test_mail( $swpsmtp_to, $swpsmtp_subject, $swpsmtp_message );
271
+ } ?>
272
+ <div class="swpsmtp-mail wrap" id="swpsmtp-mail">
273
+ <div id="icon-options-general" class="icon32 icon32-bws"></div>
274
+ <h2><?php _e( "Easy WP SMTP Settings", 'easy_wp_smtp' ); ?></h2>
275
+ <div class="update-nag">Please visit the <a target="_blank" href="http://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>
276
+ <div class="updated fade" <?php if( empty( $message ) ) echo "style=\"display:none\""; ?>>
277
+ <p><strong><?php echo $message; ?></strong></p>
278
+ </div>
279
+ <div class="error" <?php if ( empty( $error ) ) echo "style=\"display:none\""; ?>>
280
+ <p><strong><?php echo $error; ?></strong></p>
281
+ </div>
282
+ <div id="swpsmtp-settings-notice" class="updated fade" style="display:none">
283
+ <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>
284
+ </div>
285
+ <h3><?php _e( 'General Settings', 'easy_wp_smtp' ); ?></h3>
286
+ <form id="swpsmtp_settings_form" method="post" action="">
287
+ <table class="form-table">
288
+ <tr valign="top">
289
+ <th scope="row"><?php _e( "From Email Address", 'easy_wp_smtp' ); ?></th>
290
+ <td>
291
+ <input type="text" name="swpsmtp_from_email" value="<?php echo stripslashes( $swpsmtp_options['from_email_field'] ); ?>"/><br />
292
+ <span class="swpsmtp_info"><?php _e( "This email address will be used in the 'From' field.", 'easy_wp_smtp' ); ?></span>
293
+ </td>
294
+ </tr>
295
+ <tr valign="top">
296
+ <th scope="row"><?php _e( "From Name", 'easy_wp_smtp' ); ?></th>
297
+ <td>
298
+ <input type="text" name="swpsmtp_from_name" value="<?php echo $swpsmtp_options['from_name_field']; ?>"/><br />
299
+ <span class="swpsmtp_info"><?php _e( "This text will be used in the 'FROM' field", 'easy_wp_smtp' ); ?></span>
300
+ </td>
301
+ </tr>
302
+ <tr class="ad_opt swpsmtp_smtp_options">
303
+ <th><?php _e( 'SMTP Host', 'easy_wp_smtp' ); ?></th>
304
+ <td>
305
+ <input type='text' name='swpsmtp_smtp_host' value='<?php echo $swpsmtp_options['smtp_settings']['host']; ?>' /><br />
306
+ <span class="swpsmtp_info"><?php _e( "Your mail server", 'easy_wp_smtp' ); ?></span>
307
+ </td>
308
+ </tr>
309
+ <tr class="ad_opt swpsmtp_smtp_options">
310
+ <th><?php _e( 'Type of Encription', 'easy_wp_smtp' ); ?></th>
311
+ <td>
312
+ <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>
313
+ <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>
314
+ <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 />
315
+ <span class="swpsmtp_info"><?php _e( "For most servers SSL is the recommended option", 'easy_wp_smtp' ); ?></span>
316
+ </td>
317
+ </tr>
318
+ <tr class="ad_opt swpsmtp_smtp_options">
319
+ <th><?php _e( 'SMTP Port', 'easy_wp_smtp' ); ?></th>
320
+ <td>
321
+ <input type='text' name='swpsmtp_smtp_port' value='<?php echo $swpsmtp_options['smtp_settings']['port']; ?>' /><br />
322
+ <span class="swpsmtp_info"><?php _e( "The port to your mail server", 'easy_wp_smtp' ); ?></span>
323
+ </td>
324
+ </tr>
325
+ <tr class="ad_opt swpsmtp_smtp_options">
326
+ <th><?php _e( 'SMTP Autentication', 'easy_wp_smtp' ); ?></th>
327
+ <td>
328
+ <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>
329
+ <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 />
330
+ <span class="swpsmtp_info"><?php _e( "This options should always be checked 'Yes'", 'easy_wp_smtp' ); ?></span>
331
+ </td>
332
+ </tr>
333
+ <tr class="ad_opt swpsmtp_smtp_options">
334
+ <th><?php _e( 'SMTP username', 'easy_wp_smtp' ); ?></th>
335
+ <td>
336
+ <input type='text' name='swpsmtp_smtp_username' value='<?php echo $swpsmtp_options['smtp_settings']['username']; ?>' /><br />
337
+ <span class="swpsmtp_info"><?php _e( "The username to login to your mail server", 'easy_wp_smtp' ); ?></span>
338
+ </td>
339
+ </tr>
340
+ <tr class="ad_opt swpsmtp_smtp_options">
341
+ <th><?php _e( 'SMTP Password', 'easy_wp_smtp' ); ?></th>
342
+ <td>
343
+ <input type='password' name='swpsmtp_smtp_password' value='<?php echo $swpsmtp_options['smtp_settings']['password']; ?>' /><br />
344
+ <span class="swpsmtp_info"><?php _e( "The password to login to your mail server", 'easy_wp_smtp' ); ?></span>
345
+ </td>
346
+ </tr>
347
+ </table>
348
+ <p class="submit">
349
+ <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Save Changes', 'easy_wp_smtp' ) ?>" />
350
+ <input type="hidden" name="swpsmtp_form_submit" value="submit" />
351
+ <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
352
+ </p>
353
+ </form>
354
+
355
+ <div class="updated fade" <?php if( empty( $result ) ) echo "style=\"display:none\""; ?>>
356
+ <p><strong><?php echo $result; ?></strong></p>
357
+ </div>
358
+ <h3><?php _e( 'Testing And Debugging Settings', 'easy_wp_smtp' ); ?></h3>
359
+ <form id="swpsmtp_settings_form" method="post" action="">
360
+ <table class="form-table">
361
+ <tr valign="top">
362
+ <th scope="row"><?php _e( "To", 'easy_wp_smtp' ); ?>:</th>
363
+ <td>
364
+ <input type="text" name="swpsmtp_to" value=""/><br />
365
+ <span class="swpsmtp_info"><?php _e( "Enter the email address to recipient", 'easy_wp_smtp' ); ?></span>
366
+ </td>
367
+ </tr>
368
+ <tr valign="top">
369
+ <th scope="row"><?php _e( "Subject", 'easy_wp_smtp' ); ?>:</th>
370
+ <td>
371
+ <input type="text" name="swpsmtp_subject" value=""/><br />
372
+ <span class="swpsmtp_info"><?php _e( "Enter a subject for your message", 'easy_wp_smtp' ); ?></span>
373
+ </td>
374
+ </tr>
375
+ <tr valign="top">
376
+ <th scope="row"><?php _e( "Message", 'easy_wp_smtp' ); ?>:</th>
377
+ <td>
378
+ <textarea name="swpsmtp_message" rows="5"></textarea><br />
379
+ <span class="swpsmtp_info"><?php _e( "Write your message", 'easy_wp_smtp' ); ?></span>
380
+ </td>
381
+ </tr>
382
+ </table>
383
+ <p class="submit">
384
+ <input type="submit" id="settings-form-submit" class="button-primary" value="<?php _e( 'Send Test Email', 'easy_wp_smtp' ) ?>" />
385
+ <input type="hidden" name="swpsmtp_test_submit" value="submit" />
386
+ <?php wp_nonce_field( plugin_basename( __FILE__ ), 'swpsmtp_nonce_name' ); ?>
387
+ </p>
388
+ </form>
389
+ </div><!-- #swpsmtp-mail .swpsmtp-mail -->
390
+ <?php }
391
+ }
392
+
393
+ /**
394
+ * Function to test mail sending
395
+ * @return text or errors
396
+ */
397
+ if ( ! function_exists( 'swpsmtp_test_mail' ) ) {
398
+ function swpsmtp_test_mail( $to_email, $subject, $message ) {
399
+ global $swpsmtp_options, $wpmu;
400
+ $errors = '';
401
+
402
+ if( empty( $swpsmtp_options ) )
403
+ $swpsmtp_options = ( 1 == $wpmu ) ? get_site_option( 'swpsmtp_options' ) : get_option( 'swpsmtp_options' );
404
+
405
+ require_once( ABSPATH . WPINC . '/class-phpmailer.php' );
406
+ $mail = new PHPMailer();
407
+
408
+ $from_name = $swpsmtp_options['from_name_field'];
409
+ $from_email = $swpsmtp_options['from_email_field'];
410
+
411
+ $mail->IsSMTP();
412
+
413
+ /* If using smtp auth, set the username & password */
414
+ if( 'yes' == $swpsmtp_options['smtp_settings']['autentication'] ){
415
+ $mail->SMTPAuth = true;
416
+ $mail->Username = $swpsmtp_options['smtp_settings']['username'];
417
+ $mail->Password = $swpsmtp_options['smtp_settings']['password'];
418
+ }
419
+
420
+ /* Set the SMTPSecure value, if set to none, leave this blank */
421
+ if ( $swpsmtp_options['smtp_settings']['type_encryption'] !== 'none' ) {
422
+ $mail->SMTPSecure = $swpsmtp_options['smtp_settings']['type_encryption'];
423
+ }
424
+
425
+ /* Set the other options */
426
+ $mail->Host = $swpsmtp_options['smtp_settings']['host'];
427
+ $mail->Port = $swpsmtp_options['smtp_settings']['port'];
428
+ $mail->SetFrom( $from_email, $from_name );
429
+ $mail->isHTML( true );
430
+ $mail->Subject = $subject;
431
+ $mail->MsgHTML( $message );
432
+ $mail->AddAddress( $to_email );
433
+ $mail->SMTPDebug = 0;
434
+
435
+ /* Send mail and return result */
436
+ if ( ! $mail->Send() )
437
+ $errors = $mail->ErrorInfo;
438
+
439
+ $mail->ClearAddresses();
440
+ $mail->ClearAllRecipients();
441
+
442
+ if ( ! empty( $errors ) ) {
443
+ return $errors;
444
+ }
445
+ else{
446
+ return 'Test mail was sended';
447
+ }
448
+ }
449
+ }
450
+
451
+ /**
452
+ * Performed at uninstal.
453
+ * @return void
454
+ */
455
+ if ( ! function_exists( 'swpsmtp_send_uninstall' ) ) {
456
+ function swpsmtp_send_uninstall() {
457
+ global $wpdb;
458
+
459
+ /* delete plugin options */
460
+ delete_site_option( 'swpsmtp_options' );
461
+ delete_option( 'swpsmtp_options' );
462
+ }
463
+ }
464
+
465
+
466
+ /**
467
+ * Add all hooks
468
+ */
469
+
470
+ add_filter( 'plugin_action_links', 'swpsmtp_plugin_action_links', 10, 2 );
471
+ add_filter( 'plugin_row_meta', 'swpsmtp_register_plugin_links', 10, 2 );
472
+
473
+ add_action( 'phpmailer_init','swpsmtp_init_smtp');
474
+
475
+ add_action( 'admin_menu', 'swpsmtp_admin_default_setup' );
476
+
477
+ add_action( 'admin_init', 'swpsmtp_admin_init' );
478
+ add_action( 'admin_enqueue_scripts', 'swpsmtp_admin_head' );
479
+
480
+ register_uninstall_hook( plugin_basename( __FILE__ ), 'swpsmtp_send_uninstall' );
easy_wp_smtp.php DELETED
@@ -1,69 +0,0 @@
1
- <?php
2
- /*
3
- Plugin Name: Easy WP SMTP
4
- Version: 1.0.7
5
- Plugin URI: http://wp-ecommerce.net/?p=2197
6
- Author: wpecommerce
7
- Author URI: http://wp-ecommerce.net/
8
- Description: Send email via SMTP from your WordPress Blog
9
- */
10
- define('EASY_WP_SMTP_PLUGIN_VERSION', "1.0.7");
11
- $ewpsOptions = get_option("easy_wp_smtp_options");
12
-
13
- function easy_wp_smtp($phpmailer){
14
- global $ewpsOptions;
15
- if( !is_email($ewpsOptions["from"]) || empty($ewpsOptions["host"]) ){
16
- return;
17
- }
18
- $phpmailer->Mailer = "smtp";
19
- $phpmailer->From = $ewpsOptions["from"];
20
- $phpmailer->FromName = $ewpsOptions["fromname"];
21
- $phpmailer->Sender = $phpmailer->From; //Return-Path
22
- //$phpmailer->AddReplyTo($phpmailer->From,$phpmailer->FromName); //Reply-To
23
- $phpmailer->Host = $ewpsOptions["host"];
24
- $phpmailer->SMTPSecure = $ewpsOptions["smtpsecure"];
25
- $phpmailer->Port = $ewpsOptions["port"];
26
- $phpmailer->SMTPAuth = ($ewpsOptions["smtpauth"]=="yes") ? TRUE : FALSE;
27
- if($phpmailer->SMTPAuth){
28
- $phpmailer->Username = $ewpsOptions["username"];
29
- $phpmailer->Password = $ewpsOptions["password"];
30
- }
31
- if($ewpsOptions["debug"]=="yes")
32
- {
33
- $phpmailer->SMTPDebug = 2;
34
- }
35
- }
36
- add_action('phpmailer_init','easy_wp_smtp');
37
-
38
- function easy_wp_smtp_activate(){
39
- $ewpsOptions = array();
40
- $ewpsOptions["from"] = "";
41
- $ewpsOptions["fromname"] = "";
42
- $ewpsOptions["host"] = "";
43
- $ewpsOptions["smtpsecure"] = "";
44
- $ewpsOptions["port"] = "";
45
- $ewpsOptions["smtpauth"] = "yes";
46
- $ewpsOptions["username"] = "";
47
- $ewpsOptions["password"] = "";
48
- $ewpsOptions["debug"] = "";
49
- $ewpsOptions["deactivate"] = "";
50
- add_option("easy_wp_smtp_options",$ewpsOptions);
51
- }
52
- register_activation_hook( __FILE__ , 'easy_wp_smtp_activate' );
53
-
54
- if($ewpsOptions["deactivate"]=="yes"){
55
- register_deactivation_hook( __FILE__ , create_function('','delete_option("easy_wp_smtp_options");') );
56
- }
57
-
58
- function easy_wp_smtp_settings_link($action_links,$plugin_file){
59
- if($plugin_file==plugin_basename(__FILE__)){
60
- $ewps_settings_link = '<a href="options-general.php?page=' . dirname(plugin_basename(__FILE__)) . '/easy_wp_smtp_admin.php">' . __("Settings") . '</a>';
61
- array_unshift($action_links,$ewps_settings_link);
62
- }
63
- return $action_links;
64
- }
65
- add_filter('plugin_action_links','easy_wp_smtp_settings_link',10,2);
66
-
67
- if(is_admin()){require_once('easy_wp_smtp_admin.php');}
68
-
69
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
easy_wp_smtp_admin.php DELETED
@@ -1,301 +0,0 @@
1
- <?php
2
- function easy_wp_smtp_admin(){
3
- add_options_page('Easy WP SMTP Options', 'Easy WP SMTP','manage_options', __FILE__, 'easy_wp_smtp_options_page');
4
- }
5
-
6
- function easy_wp_smtp_options_page()
7
- {
8
- global $ewpsOptions, $phpmailer;
9
- $smtp_debug = "";
10
- $exceptionmsg = "";
11
- $full_debug = false;
12
- if(isset($_POST['easy_wp_smtp_update']))
13
- {
14
- $ewpsOptions = array();
15
- $ewpsOptions["from"] = trim(stripslashes($_POST['easy_wp_smtp_from']));
16
- $ewpsOptions["fromname"] = trim(stripslashes($_POST['easy_wp_smtp_fromname']));
17
- $ewpsOptions["host"] = trim(stripslashes($_POST['easy_wp_smtp_host']));
18
- $ewpsOptions["smtpsecure"] = trim($_POST['easy_wp_smtp_smtpsecure']);
19
- $ewpsOptions["port"] = trim(stripslashes($_POST['easy_wp_smtp_port']));
20
- $ewpsOptions["smtpauth"] = trim($_POST['easy_wp_smtp_smtpauth']);
21
- $ewpsOptions["username"] = trim(stripslashes($_POST['easy_wp_smtp_username']));
22
- $ewpsOptions["password"] = trim(stripslashes($_POST['easy_wp_smtp_password']));
23
- $ewpsOptions["debug"] = (isset($_POST['easy_wp_smtp_enable_debug'])) ? trim($_POST['easy_wp_smtp_enable_debug']) : "";
24
- $ewpsOptions["deactivate"] = (isset($_POST['easy_wp_smtp_deactivate'])) ? trim($_POST['easy_wp_smtp_deactivate']) : "";
25
- update_option("easy_wp_smtp_options",$ewpsOptions);
26
- if(!is_email($ewpsOptions["from"])){
27
- echo '<div id="message" class="updated fade"><p><strong>From</strong> field must contain a valid email address</p></div>';
28
- }
29
- elseif(empty($ewpsOptions["host"])){
30
- echo '<div id="message" class="updated fade"><p><strong>Host</strong> field cannot be left empty</p></div>';
31
- }
32
- else{
33
- echo '<div id="message" class="updated fade"><p>Options saved</p></div>';
34
- }
35
- }
36
- if(isset($_POST['easy_wp_smtp_test']))
37
- {
38
- $to = trim($_POST['easy_wp_smtp_to']);
39
- $subject = trim($_POST['easy_wp_smtp_subject']);
40
- $message = trim($_POST['easy_wp_smtp_message']);
41
- $failed = 0;
42
- $empty_fields = false;
43
- if(empty($to) || empty($subject) || empty($message))
44
- {
45
- echo '<div id="message" class="updated fade"><p>You must fill in the <strong>To</strong>, <strong>Subject</strong> and <strong>Message</strong> fields to send a test email</p></div>';
46
- $empty_fields = true;
47
- }
48
- if(!$empty_fields)
49
- {
50
- $full_debug = true;
51
- ob_start();
52
- try
53
- {
54
- $result = wp_mail($to,$subject,$message);
55
- }
56
- catch(phpmailerException $e)
57
- {
58
- $failed = 1;
59
- $exceptionmsg = $e->errorMessage();
60
- }
61
- $smtp_debug = ob_get_clean();
62
- if(!empty($exceptionmsg))
63
- {
64
- echo '<div id="message" class="updated fade"><p>Exception thrown: '.$exceptionmsg.'</p></div>';
65
- }
66
- if(!$failed)
67
- {
68
- if($result==TRUE)
69
- {
70
- echo '<div id="message" class="updated fade"><p>Email sent</p></div>';
71
- }
72
- else
73
- {
74
- echo '<div id="message" class="updated fade"><p>Email could no be sent</p></div>';
75
- }
76
- }
77
- }
78
- }
79
- ?>
80
- <div class="wrap">
81
- <?php screen_icon(); ?>
82
- <h2>
83
- Easy WP SMTP v<?php echo EASY_WP_SMTP_PLUGIN_VERSION; ?>
84
- </h2>
85
- <div id="poststuff"><div id="post-body">
86
- <div class="postbox">
87
- <h3><label for="title">General Settings</label></h3>
88
- <div class="inside">
89
- <form action="" method="post" enctype="multipart/form-data" name="easy_wp_smtp_form">
90
- <p>Please check the <a href="http://wp-ecommerce.net/?p=2197" target="_blank">documentation</a> before you configure the general settings</p>
91
- <table class="form-table">
92
- <tr valign="top">
93
- <th scope="row">
94
- From Email Address
95
- </th>
96
- <td>
97
- <label>
98
- <input type="text" name="easy_wp_smtp_from" value="<?php echo $ewpsOptions["from"]; ?>" size="43" />
99
- </label>
100
- <p>The email address that will be used to send emails to your recipients</p>
101
- </td>
102
- </tr>
103
- <tr valign="top">
104
- <th scope="row">
105
- From Name
106
- </th>
107
- <td>
108
- <label>
109
- <input type="text" name="easy_wp_smtp_fromname" value="<?php echo $ewpsOptions["fromname"]; ?>" size="43" />
110
- </label>
111
- <p>The name your recipients will see as part of the "from" or "sender" value when they receive your message</p>
112
- </td>
113
- </tr>
114
- <tr valign="top">
115
- <th scope="row">
116
- SMTP Host
117
- </th>
118
- <td>
119
- <label>
120
- <input type="text" name="easy_wp_smtp_host" value="<?php echo $ewpsOptions["host"]; ?>" size="43" />
121
- </label>
122
- <p>Your outgoing mail server (example: smtp.gmail.com)</p>
123
- </td>
124
- </tr>
125
- <tr valign="top">
126
- <th scope="row">
127
- Type of Encryption
128
- </th>
129
- <td>
130
- <label>
131
- <input name="easy_wp_smtp_smtpsecure" type="radio" value=""<?php if ($ewpsOptions["smtpsecure"] == '') { ?> checked="checked"<?php } ?> />
132
- None
133
- </label>
134
- &nbsp;
135
- <label>
136
- <input name="easy_wp_smtp_smtpsecure" type="radio" value="ssl"<?php if ($ewpsOptions["smtpsecure"] == 'ssl') { ?> checked="checked"<?php } ?> />
137
- SSL
138
- </label>
139
- &nbsp;
140
- <label>
141
- <input name="easy_wp_smtp_smtpsecure" type="radio" value="tls"<?php if ($ewpsOptions["smtpsecure"] == 'tls') { ?> checked="checked"<?php } ?> />
142
- TLS
143
- </label>
144
- <p>For most servers SSL is the recommended option</p>
145
- </td>
146
- </tr>
147
- <tr valign="top">
148
- <th scope="row">
149
- SMTP Port
150
- </th>
151
- <td>
152
- <label>
153
- <input type="text" name="easy_wp_smtp_port" value="<?php echo $ewpsOptions["port"]; ?>" size="43" />
154
- </label>
155
- <p>The port that will be used to relay outbound mail to your mail server (example: 465)</p>
156
- </td>
157
- </tr>
158
- <tr valign="top">
159
- <th scope="row">
160
- SMTP Authentication
161
- </th>
162
- <td>
163
- <label>
164
- <input name="easy_wp_smtp_smtpauth" type="radio" value="no"<?php if ($ewpsOptions["smtpauth"] == 'no') { ?> checked="checked"<?php } ?> />
165
- No
166
- </label>
167
- &nbsp;
168
- <label>
169
- <input name="easy_wp_smtp_smtpauth" type="radio" value="yes"<?php if ($ewpsOptions["smtpauth"] == 'yes') { ?> checked="checked"<?php } ?> />
170
- Yes
171
- </label>
172
- <p>This option should always be checked "Yes".</p>
173
- </td>
174
- </tr>
175
- <tr valign="top">
176
- <th scope="row">
177
- Username
178
- </th>
179
- <td>
180
- <label>
181
- <input type="text" name="easy_wp_smtp_username" value="<?php echo $ewpsOptions["username"]; ?>" size="43" />
182
- </label>
183
- <p>The username that you use to login to your mail server (example: abc123@gmail.com)</p>
184
- </td>
185
- </tr>
186
- <tr valign="top">
187
- <th scope="row">
188
- Password
189
- </th>
190
- <td>
191
- <label>
192
- <input type="password" name="easy_wp_smtp_password" value="<?php echo $ewpsOptions["password"]; ?>" size="43" />
193
- </label>
194
- <p>The password that you use to login to your mail server</p>
195
- </td>
196
- </tr>
197
- <tr valign="top">
198
- <th scope="row">
199
- Enable SMTP Debug
200
- </th>
201
- <td>
202
- <label>
203
- <input type="checkbox" name="easy_wp_smtp_enable_debug" value="yes" <?php if($ewpsOptions["debug"]=='yes') echo 'checked="checked"'; ?> />
204
- If enabled the SMTP debug output will be printed on the screen. This option is very useful if you are having issues with sending emails.
205
- </label>
206
- </td>
207
- </tr>
208
- <!--
209
- <tr valign="top">
210
- <th scope="row">
211
- Delete Options
212
- </th>
213
- <td>
214
- <label>
215
- <input type="checkbox" name="easy_wp_smtp_deactivate" value="yes" <?php if($ewpsOptions["deactivate"]=='yes') echo 'checked="checked"'; ?> />
216
- Automatically Delete options when you deactivate the plugin
217
- </label>
218
- </td>
219
- </tr>
220
- -->
221
- </table>
222
-
223
- <p class="submit">
224
- <input type="hidden" name="easy_wp_smtp_update" value="update" />
225
- <input type="submit" class="button-primary" name="Submit" value="<?php _e('Save Changes'); ?>" />
226
- </p>
227
-
228
- </form>
229
- </div></div>
230
-
231
- <div class="postbox">
232
- <h3><label for="title">Testing & Debugging Settings</label></h3>
233
- <div class="inside">
234
- <form action="" method="post" enctype="multipart/form-data" name="wp_smtp_testform">
235
- <table class="form-table">
236
- <tr valign="top">
237
- <th scope="row">
238
- To:
239
- </th>
240
- <td>
241
- <label>
242
- <input type="text" name="easy_wp_smtp_to" value="" size="43" />
243
- </label>
244
- <p>Enter the email address of the recipient </p>
245
- </td>
246
- </tr>
247
- <tr valign="top">
248
- <th scope="row">
249
- Subject:
250
- </th>
251
- <td>
252
- <label>
253
- <input type="text" name="easy_wp_smtp_subject" value="" size="43" />
254
- </label>
255
- <p>Enter a subject for your message</p>
256
- </td>
257
- </tr>
258
- <tr valign="top">
259
- <th scope="row">
260
- Message:
261
- </th>
262
- <td>
263
- <label>
264
- <textarea type="text" name="easy_wp_smtp_message" value="" cols="45" rows="5"></textarea>
265
- </label>
266
- <p>Write your message</p>
267
- </td>
268
- </tr>
269
- </table>
270
- <p class="submit">
271
- <input type="hidden" name="easy_wp_smtp_test" value="test" />
272
- <input type="submit" class="button-primary" value="Send Test Email" />
273
- </p>
274
- </form>
275
- </div></div>
276
- <?php
277
- if(!empty($smtp_debug))
278
- {
279
- ?>
280
- SMTP Debug:
281
- <p>
282
- <textarea type="text" cols="50" rows="20"><?php echo $smtp_debug;?></textarea>
283
- </p>
284
- <?php
285
- }
286
- if($full_debug)
287
- {
288
- ?>
289
- Full Debug:
290
- <p>
291
- <textarea type="text" cols="50" rows="20"><?php var_dump($phpmailer);?></textarea>
292
- </p>
293
- <?php
294
- }
295
- ?>
296
- </div></div>
297
- </div>
298
- <?php
299
- }
300
- add_action('admin_menu', 'easy_wp_smtp_admin');
301
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/script.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function( $ ){
2
+ $( document ).ready( function() {
3
+ /*
4
+ *add notice about changing in the settings page
5
+ */
6
+ $( '#swpsmtp-mail input' ).bind( "change click select", function() {
7
+ if ( $( this ).attr( 'type' ) != 'submit' ) {
8
+ $( '.updated.fade' ).css( 'display', 'none' );
9
+ $( '#swpsmtp-settings-notice' ).css( 'display', 'block' );
10
+ };
11
+ });
12
+ });
13
+ })(jQuery);
readme.txt CHANGED
@@ -1,104 +1,113 @@
1
- === Easy WP SMTP ===
2
- Contributors: wpecommerce
3
- Donate link: http://wp-ecommerce.net/?p=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: 3.0
6
- Tested up to: 3.8
7
- Stable tag: 1.0.7
8
- License: GPLv2 or later
9
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
-
11
- Easily send emails from your WordPress blog using your preferred SMTP server
12
-
13
- == Description ==
14
-
15
- Easy WP SMTP allows you to configure and send all outgoing emails via a SMTP server. This will prevent your emails from going into the junk/spam folder of the recipients.
16
-
17
- = Easy WP SMTP Features =
18
-
19
- * Send email using a SMTP sever.
20
- * You can use Gmail, Yahoo, Hotmail's SMTP server if you have an account with them.
21
- * Seamlessly connect your WordPress blog with a mail server to handle all outgoing emails (it's as if the email has been composed inside your mail account).
22
- * Securely deliver emails to your recipients.
23
-
24
- = Easy WP SMTP Plugin Usage =
25
-
26
- Once you have installed the plugin there are some options that you need to configure in the plugin setttings (go to `Settings->Easy WP SMTP` from your WordPress Dashboard).
27
-
28
- **a)** Easy WP SMTP General Settings
29
-
30
- The general settings section consists of the following options
31
-
32
- * From Email Address: The email address that will be used to send emails to your recipients
33
- * From Name: The name your recipients will see as part of the "from" or "sender" value when they receive your message
34
- * SMTP Host: Your outgoing mail server (example: smtp.gmail.com)
35
- * Type of Encryption: none/SSL/TLS
36
- * SMTP Port: The port that will be used to relay outbound mail to your mail server (example: 465)
37
- * SMTP Authentication: No/Yes (This option should always be checked "Yes")
38
- * Username: The username that you use to login to your mail server
39
- * Password: The password that you use to login to your mail server
40
- * Enable Debug: Use this option if you are having issues with sending emails since it allows you to see the SMTP debug output on the screen.
41
-
42
- For detailed documentation on how you can configure these options please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
43
-
44
- **b)** Easy WP SMTP Testing & Debugging Settings
45
-
46
- This section allows you to perform some email testing to make sure that your WordPress site is ready to relay all outgoing emails to your configured SMTP server. It consists of the following options:
47
-
48
- * To: The email address that will be used to send emails to your recipients
49
- * Subject: The subject of your message
50
- * Message: A textarea to write your test message.
51
-
52
- Once you click the "Send Test Email" button the plugin will try to send an email to the recipient specified in the "To" field.
53
-
54
- == Installation ==
55
-
56
- 1. Go to the Add New plugins screen in your WordPress admin area
57
- 1. Click the upload tab
58
- 1. Browse for the plugin file (easy-wp-smtp.zip)
59
- 1. Click Install Now and then activate the plugin
60
- 1. Now, go to the settings menu of the plugin and follow the instructions
61
-
62
- == Frequently Asked Questions ==
63
-
64
- = Can this plugin be used to send emails via SMTP? =
65
-
66
- Yes.
67
-
68
- == Screenshots ==
69
-
70
- For screenshots please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
71
-
72
- == Changelog ==
73
-
74
- = 1.0.1 =
75
-
76
- * First commit of the plugin
77
-
78
- = 1.0.2 =
79
-
80
- * Fixed a bug where the debug output was being displayed on the front end
81
-
82
- = 1.0.3 =
83
-
84
- * Added a new option to the settings which allows a user to enable/disable SMTP debug
85
-
86
- = 1.0.4 =
87
-
88
- * Plugin is now compatible with WordPress 3.6
89
-
90
- = 1.0.5 =
91
-
92
- * "Reply-To" text will no longer be added to the email header
93
- * From Name field can now contain quotes. It will no longer be converted to '\'
94
-
95
- = 1.0.6 =
96
-
97
- * Plugin is now compatible with WordPress 3.7
98
-
99
- = 1.0.7 =
100
-
101
- * Plugin now works with WordPress 3.8
102
-
103
- == Upgrade Notice ==
104
- none
 
 
 
 
 
 
 
 
 
1
+ === Easy WP SMTP ===
2
+ Contributors: wpecommerce
3
+ Donate link: http://wp-ecommerce.net/?p=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: 3.0
6
+ Tested up to: 3.9
7
+ Stable tag: 1.0.8
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Easily send emails from your WordPress blog using your preferred SMTP server
12
+
13
+ == Description ==
14
+
15
+ Easy WP SMTP allows you to configure and send all outgoing emails via a SMTP server. This will prevent your emails from going into the junk/spam folder of the recipients.
16
+
17
+ = Easy WP SMTP Features =
18
+
19
+ * Send email using a SMTP sever.
20
+ * You can use Gmail, Yahoo, Hotmail's SMTP server if you have an account with them.
21
+ * Seamlessly connect your WordPress blog with a mail server to handle all outgoing emails (it's as if the email has been composed inside your mail account).
22
+ * Securely deliver emails to your recipients.
23
+
24
+ = Easy WP SMTP Plugin Usage =
25
+
26
+ Once you have installed the plugin there are some options that you need to configure in the plugin setttings (go to `Settings->Easy WP SMTP` from your WordPress Dashboard).
27
+
28
+ **a)** Easy WP SMTP General Settings
29
+
30
+ The general settings section consists of the following options
31
+
32
+ * From Email Address: The email address that will be used to send emails to your recipients
33
+ * From Name: The name your recipients will see as part of the "from" or "sender" value when they receive your message
34
+ * SMTP Host: Your outgoing mail server (example: smtp.gmail.com)
35
+ * Type of Encryption: none/SSL/TLS
36
+ * SMTP Port: The port that will be used to relay outbound mail to your mail server (example: 465)
37
+ * SMTP Authentication: No/Yes (This option should always be checked "Yes")
38
+ * Username: The username that you use to login to your mail server
39
+ * Password: The password that you use to login to your mail server
40
+
41
+ For detailed documentation on how you can configure these options please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
42
+
43
+ **b)** Easy WP SMTP Testing & Debugging Settings
44
+
45
+ This section allows you to perform some email testing to make sure that your WordPress site is ready to relay all outgoing emails to your configured SMTP server. It consists of the following options:
46
+
47
+ * To: The email address that will be used to send emails to your recipients
48
+ * Subject: The subject of your message
49
+ * Message: A textarea to write your test message.
50
+
51
+ Once you click the "Send Test Email" button the plugin will try to send an email to the recipient specified in the "To" field.
52
+
53
+ == Installation ==
54
+
55
+ 1. Go to the Add New plugins screen in your WordPress admin area
56
+ 1. Click the upload tab
57
+ 1. Browse for the plugin file (easy-wp-smtp.zip)
58
+ 1. Click Install Now and then activate the plugin
59
+ 1. Now, go to the settings menu of the plugin and follow the instructions
60
+
61
+ == Frequently Asked Questions ==
62
+
63
+ = Can this plugin be used to send emails via SMTP? =
64
+
65
+ Yes.
66
+
67
+ == Screenshots ==
68
+
69
+ For screenshots please visit the [Easy WordPress SMTP](http://wp-ecommerce.net/easy-wordpress-smtp-send-emails-from-your-wordpress-site-using-a-smtp-server-2197) plugin page
70
+
71
+ == Other Notes ==
72
+
73
+ Inspired by [WP Mail SMTP](http://wordpress.org/plugins/wp-mail-smtp/) plugin
74
+
75
+
76
+ == Changelog ==
77
+
78
+ = 1.0.8 =
79
+
80
+ * Plugin now works with WordPress 3.9
81
+
82
+ = 1.0.7 =
83
+
84
+ * Plugin now works with WordPress 3.8
85
+
86
+ = 1.0.6 =
87
+
88
+ * Plugin is now compatible with WordPress 3.7
89
+
90
+ = 1.0.5 =
91
+
92
+ * "Reply-To" text will no longer be added to the email header
93
+ * From Name field can now contain quotes. It will no longer be converted to '\'
94
+
95
+ = 1.0.4 =
96
+
97
+ * Plugin is now compatible with WordPress 3.6
98
+
99
+ = 1.0.3 =
100
+
101
+ * Added a new option to the settings which allows a user to enable/disable SMTP debug
102
+
103
+ = 1.0.2 =
104
+
105
+ * Fixed a bug where the debug output was being displayed on the front end
106
+
107
+ = 1.0.1 =
108
+
109
+ * First commit of the plugin
110
+
111
+ == Upgrade Notice ==
112
+
113
+ There were some major changes in version 1.0.8. So you will need to reconfigure the SMTP options after the upgrade.
screenshot-1.png ADDED
Binary file