WP Mail SMTP by WPForms - Version 0.3.2

Version Description

Download this release

Release Info

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

Code changes from version 0.3.1 to 0.3.2

Files changed (2) hide show
  1. readme.txt +2 -2
  2. wp-mail-smtp/wp_mail_smtp.php +3 -5
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Plugin Name ===
2
  Contributors: chmac
3
  Donate link: http://www.callum-macdonald.com/code/donate/
4
  Tags: mail, smtp, wp_mail, mailer, phpmailer
5
  Requires at least: 2.0
6
  Tested up to: 2.2.3
7
- Stable tag: 0.3.1
8
 
9
  Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc.
10
 
1
+ === WP Mail SMTP ===
2
  Contributors: chmac
3
  Donate link: http://www.callum-macdonald.com/code/donate/
4
  Tags: mail, smtp, wp_mail, mailer, phpmailer
5
  Requires at least: 2.0
6
  Tested up to: 2.2.3
7
+ Stable tag: 0.3.2
8
 
9
  Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc.
10
 
wp-mail-smtp/wp_mail_smtp.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-Mail-SMTP
4
- Version: 0.3.1
5
  Plugin URI: http://www.callum-macdonald.com/code/wp-mail-smtp/
6
  Description: Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc.
7
  Author: Callum Macdonald
@@ -22,15 +22,13 @@ Author URI: http://www.callum-macdonald.com/
22
  *
23
  * CHANGELOG
24
  *
 
25
  * 0.3.1 - Added readme for WP-Plugins.org compatability
26
  * 0.3 - Various bugfixes and added From options
27
  * 0.2 - Reworked approach as suggested by westi, added options page
28
  * 0.1 - Initial approach, copying the wp_mail function and replacing it
29
  */
30
 
31
- // Some simple config
32
- $wpms_thisfile = "wp-mail-smtp/wp_mail_smtp.php"; // If you rename this file for any reason, change this variable
33
-
34
  // Array of options and their default values
35
  $wpms_options = array (
36
  'mail_from' => '',
@@ -231,7 +229,7 @@ add_action('phpmailer_init','phpmailer_init_smtp');
231
  // Add the create pages options
232
  add_action('admin_menu','wp_mail_smtp_menus');
233
  // Add an activation hook for this plugin
234
- add_action('activate_' . $wpms_thisfile,'wp_mail_smtp_activate');
235
  // Add a filter to replace the mail from address
236
  add_filter('wp_mail_from','wp_mail_smtp_mail_from');
237
 
1
  <?php
2
  /*
3
  Plugin Name: WP-Mail-SMTP
4
+ Version: 0.3.2
5
  Plugin URI: http://www.callum-macdonald.com/code/wp-mail-smtp/
6
  Description: Reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc.
7
  Author: Callum Macdonald
22
  *
23
  * CHANGELOG
24
  *
25
+ * 0.3.2 - Changed to use register_activation_hook for greater compatability
26
  * 0.3.1 - Added readme for WP-Plugins.org compatability
27
  * 0.3 - Various bugfixes and added From options
28
  * 0.2 - Reworked approach as suggested by westi, added options page
29
  * 0.1 - Initial approach, copying the wp_mail function and replacing it
30
  */
31
 
 
 
 
32
  // Array of options and their default values
33
  $wpms_options = array (
34
  'mail_from' => '',
229
  // Add the create pages options
230
  add_action('admin_menu','wp_mail_smtp_menus');
231
  // Add an activation hook for this plugin
232
+ register_activation_hook(__FILE__,'wp_mail_smtp_activate');
233
  // Add a filter to replace the mail from address
234
  add_filter('wp_mail_from','wp_mail_smtp_mail_from');
235