Viewing 11 replies - 1 through 11 (of 11 total)
  • I can confirm this error, using WP 2.8.4 and no other reCaptcha plugins on the same page. Other contact form plugin works fine. And I later installer WP-Recaptcha for comments and that works fine as well.

    A fix would be appreciated.

    At the moment the plugin will only work with WP > 2.8.2, however a version for 2.8.4 will be available soon (no date as yet I’m afraid).

    What version of PHP do your servers run?

    Open up gd-recaptcha.php

    go to line 651, 652 and uncomment them.

    The issue is that $authorname and $authoremail are being called by line 653 $gatt_design_recaptcha_email_receiver = $authorname . ' <' . $authoremail . '>';. With those two lines commented out there’s no name or e-mail to send to.

    Rather than commenting those lines out what I did was make a new get_userdata() below line 652. So, my code looks like this and it works without disrupting anything else.

    $curauth = get_userdata(intval($gatt_design_recaptcha_form_author_field));
    //$authorname = $curauth->'user_nicename';
    //$authoremail = $curauth->'user_email';
    $sendto = get_userdata($authorId);
    $gatt_design_recaptcha_email_receiver =  $sendto->user_nicename . ' <' . $sendto->user_email . '>';

    daily_american – not quite sure what code you are using above is from, but our code simply uses the wp_mail() function.

    Anyways, a new version (1.11) is now available which we have tested with WordPress 2.8.4 and works fine for us.

    Any problems, please let us know.

    gattdesign – on line 661 of gd-recaptcha, I see the wp_mail statement within an if statement. A couple of lines above that the coding says //construct mail. The e-mail and users name weren’t being pulled in this section. So, I altered the code to pull the required data. I would upgrade to the 1.11 version, but everything is working fine on my system now.

    Thanks for making the update that’s compatible with 2.8.4 though.

    If you mean the name and email address that the email is going to, then they are set as variables in lines 606 to 609 (in v. 1.11):

    $gatt_design_recaptcha_form_name_field = $_POST['recaptcha_form_name'];
    $gatt_design_recaptcha_form_email_field = $_POST['recaptcha_form_email'];
    $gatt_design_recaptcha_form_email_field = sanitize_email($gatt_design_recaptcha_form_email_field);

    I haven’t had a chance to check through the previous versions due to time constraints, but this current version definately works OK – perhaps when you get a chance you could maybe upgrade to 1.11 to confirm it works OK for you too?

    Thanks

    Sam

    That sets the “from” field according to the programming on line 649

    $gatt_design_recaptcha_email_sender = 'From: ' . $gatt_design_recaptcha_form_name_field . ' <' . $gatt_design_recaptcha_form_email_field . '>';

    The to which is set a couple lines down is your coding is $gatt_design_recapthca_email_receiver.

    That’s the line where the issue was. The $gatt_design_recapthca_email_receiver was being defined, but the variables that were being set were blank.

    On the next site I create with wp I’ll check out the update. I don’t want to mess with the production sites I have running.

    Sorry I meant from in my previous post (it was a long day!).

    Right, the $gatt_design_recaptcha_email_receiver variable is simply pulling the information from a couple of built-in WordPress functions – get_option(‘blogname’) and get_option(‘admin_email’).

    The whole line in v1.11 is:

    $gatt_design_recaptcha_email_receiver = get_option('blogname') . ' <' . get_option('admin_email') . '>';

    In the next site you try, if v1.11 doesn’t work and and you can confirm the above is correct in your installation then I think there may be some issue with WordPress itself in that case.

    Out of interest, can you tell me which version you were experiencing the problems with?

    The version I have is 1.1 and it’s running on wp 2.8.4

    Another difference in what I’m using the form for and what you have set is that I have the contact form pulling the to email from the specific “profile” page of the user to be contacted. I’m not having all the contact forms being sent to the admin like in the code you have for 1.11

    https://www.papercutters.org/author/admin/

    gattdesign the update for 1.11 works fine to have the contact form contact the administrator on wp 2.8.4.

    Hello,

    I am having this same issue. I have installed the plugin, gotten Key and Secret and published the form
    https://www.natalie-brown.com/contact-2/

    I get the message:
    Your message could not be sent at this time.

    I am using WP Version 3.0.1
    Plugin reCAPTCHA Form Version 1.2

    Anyone have a fix? I have tried alternate CAPTCHA and they work, but we need Audio as visually impaired people visit the site and can’t send mail to the client.

    Thanks for any help you can give!

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: reCAPTCHA Form] Cannot send message’ is closed to new replies.