ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SOLVED: Can't get Email Contact Form CAPTCHA to Appear

April 16, 2009 8:43pm

Subscribe [2]
  • #1 / Apr 16, 2009 8:43pm

    Varyable

    11 posts

    Probably a simple thing that I’ve forgotten, but I can’t figure it out.

    I’ve got the Enable CAPTCHAs setting in Admin > System Prefs > Email Config set to Yes, but the following code seems to ignore the CAPTCHA part.

    {exp:email:contact_form user_recipients="false" recipients="[email protected]" charset="utf-8"}
        <h2>Quick Contact Form</h2>
    <p>    <br />
            <label for="from">Your Email:</label></p>
    
    <p>        <input class="contactField" type="text" id="from" name="from" size="40" maxlength="35" /><br />
        <br />
        <br />
            <label for="message">Message:</label></p>
    
    <p>        <textarea class="contactTxtArea" id="message" name="message" rows="10"></textarea><br />
        </p>
    
    <p>    {if captcha}<br />
            Please enter the word you see in the image below:<br />
            <br />
                {captcha}</p>
    
    <p>            <input class="contactField" type="text" name="captcha" value="" maxlength="20" /><br />
            <br />
        {/if}</p>
    
    <p>    <input name="submit" type='submit' value='Submit Form' /></p></p>
    
    <p>{/exp:email:contact_form}

    Renders as:

    <h2>Quick Contact Form</h2>
    
    <p>    <label for="from">Your Email:</label></p>
    
    <p>    <input class="contactField" type="text" id="from" name="from" size="40" maxlength="35" /></p>
    
    <p><br />
        <label for="message">Message:</label></p>
    
    <p>    <textarea class="contactTxtArea" id="message" name="message" rows="10"></textarea></p>
    
    <p> </p>
    
    <p><input name="submit" type='submit' value='Submit Form' /></p>

    Any ideas? Thanks!

  • #2 / Apr 16, 2009 8:52pm

    Varyable

    11 posts

    Figured it out.

    The CAPTCHA appeared once I logged out of EE. The CAPTCHA lines don’t appear for logged in users.

  • #3 / Apr 17, 2009 1:19am

    John Henry Donovan

    12339 posts

    Glad you were able to figure it out. Feel free to post again if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases