Changeset 334000
- Timestamp:
- 01/18/2011 09:19:23 AM (15 years ago)
- Location:
- contact-dialog/trunk
- Files:
-
- 3 edited
-
contact-dialog.php (modified) (1 diff)
-
lib/nscontactdialog.class.php (modified) (5 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
contact-dialog/trunk/contact-dialog.php
r333137 r334000 5 5 Description: An AJAX-driven contact form in a modal dialog box. 6 6 Author: James Lafferty 7 Version: 0. 37 Version: 0.4 8 8 Author URI: https://github.com/kalchas 9 9 License: GPL2 -
contact-dialog/trunk/lib/nscontactdialog.class.php
r333137 r334000 80 80 81 81 if (isset($_GET['nscdaction'])) { 82 83 $options = NSContactDialogAdmin::get_options(); 82 84 83 85 switch ($_GET['nscdaction']) { … … 87 89 header('Content-type: application/javascript'); 88 90 89 $options = NSContactDialogAdmin::get_options();90 91 91 unset($options['recaptcha_api_private_key']); 92 92 … … 111 111 header('Content-type: application/json'); 112 112 113 $result = self::send_email($ _GET['name'], $_GET['email'], $_GET['subject'], $_GET['message-body'], $_GET['recaptcha_challenge_field'], $_GET['recaptcha_response_field']);113 $result = self::send_email($options['contact_email_address'], $_GET['name'], $_GET['email'], $_GET['subject'], $_GET['message-body'], $_GET['recaptcha_challenge_field'], $_GET['recaptcha_response_field']); 114 114 115 115 echo json_encode($result); … … 165 165 * @author jameslafferty 166 166 */ 167 private static function send_email ($ name = null, $email_address = null, $subject = null, $message = null, $recaptcha_challenge_field = null, $recaptcha_response_field = null) {167 private static function send_email ($target_email, $name = null, $email_address = null, $subject = null, $message = null, $recaptcha_challenge_field = null, $recaptcha_response_field = null) { 168 168 169 169 $response['response'] = 'error'; //Assume the worst. … … 203 203 $message = stripslashes($message); 204 204 205 $result = array(wp_mail($ email_address, stripslashes($subject), $message, $headers));205 $result = array(wp_mail($target_email, stripslashes($subject), $message, $headers)); 206 206 207 207 if (true == $result) { -
contact-dialog/trunk/readme.txt
r333137 r334000 23 23 24 24 == Frequently Asked Questions == 25 There are no Frequently Asked Questions yet, because this has just been released. 25 26 = Why am I not getting emails? = 27 Could be one of a few things. First, check the version of the plugin you're using. If it's lower than 0.4, upgrade and it should resolve the issue. If that doesn't do it, change the default email address from my address to your own... It'll make my inbox lighter, too. Finally, you may be having an issue with mail in general. Contact your server admin for help. 26 28 27 29 == Screenshots == … … 32 34 33 35 == Changelog == 36 = 0.4 = 37 * Major bugfix. The plugin was sending emails to the sender rather than to the recipient specified in the admin. That must be annoying! Thanks very much to a user who shall remain anonymous for pointing out this issue. 38 34 39 = 0.3 = 35 40 * Removed some notices that were appearing in WP_DEBUG mode. … … 46 51 47 52 == Upgrade Notice == 53 = 0.4 = 54 * The previous version sent emails to the sender -- an-NOY-ing! -- This version fixes that and actually sends the emails to the specified admin. 55 48 56 = 0.3 = 49 57 * Removes some notices that were appearing in WP_DEBUG mode (minor).
Note: See TracChangeset
for help on using the changeset viewer.