Hi,
I’m kind of new to EE and I’ve gotten a simple contact form to work. Today I tried to add and input=“file” field and the attachment doesn’t arrive in my inbox even though I can select it on the front end part of the site.
The other issue is that Captch doesn’t produce an image on the front end. I enabled it in admin>email configuration. But it’s still not working.
Here’s my code for the form if any has an idea? It could be quite simple. I’m just more of a designer than a programmer. Here’s the site too: http://www.drinkyourcarbs.com/site/success/share
{exp:email:contact_form user_recipients="false" recipients="[email protected]" charset="utf-8"}
<fieldset id="contact_fields">
<label for="name">
<span>Your Name:</span>
<input type="text" id="name" name="name" value="name" />
</label>
<label for="from">
<span>Your Email:</span>
<input type="text" id="from" name="from" value="email" />
</label>
<label for="subject">
<span>Subject:</span>
<input type="text" id="subject" name="subject" size="40" value="Share my Story" />
</label>
<label for="message">
<span>Message:</span>
<textarea id="message" name="message" rows="40" cols="40" size="60">Sent at: {current_time format="%Y %m %d"}</textarea>
</label>
<label for="photo" >
<span>Upload photo:</span>
<input type='file' name="photo" id="photo" value="upload photo" />
</label>
<label for="captcha" >
<span>Captcha:</span>
Please enter the word you see in the image below
<input type="text" name="captcha" value="" maxlength="20" /></p>
</label>
</fieldset>
<fieldset id="contact_action">
<input name="submit" type='submit' class="button" value='Share' id='contactSubmit' />
We will never pass on your details to third parties.
</fieldset>
{/exp:email:contact_form}