I have set up an email form, everything works, except I can’t get the captcha to show up. The code is attached below.
I have troubleshooted by checking the following:
the path and/or URL to the CAPTCHA directory is not specified correctly under Admin > Captcha Preferences
This path and URL are both specified correctly.
images/captchas/ directory (or whichever is specified) is not set to 777/writable
This directory is set to 777.
the server does not support True Type Fonts (try turning the option off under ‘Admin > Captcha Preferences’)
True Type Fonts have been set to “no”.
GD library isn’t installed and/or working correctly
? - I don’t know what this one is. - ?
system/lib/words.php file doesn’t exist
This file does exist.
I have also enabled captchas in Admin > System Preferences > Email Configuration.
I am at a loss right now. Maybe I’ve got something set up incorrectly in my code? Help?
{exp:email:contact_form user_recipients="false" recipients="myemail@myemail.com" charset="utf-8"}
<br>
<label for="from">Your Email:</label>
<input type="text" id="from" name="from" size="40" maxlength="35" style="border:0;"/>
<label for="subject">Subject:</label>
<input type="text" id="subject" name="subject" size="40" value=" " style="border:0;"/>
<label for="message">Message:</label>
<textarea id="message"
name="message" rows="18" cols="84" style="border:0;">
</textarea>
{if captcha}
Please enter the word you see in the image below:
{captcha}
<input type="text" name="captcha" value=" " size="20" maxlength="20" style="width:136px; border:0;" />
{/if}
<br>
<input name="submit" type='submit' value='Submit' style="border:0;"/>
{/exp:email:contact_form}