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.

Contact Form - no valid email

December 14, 2010 10:58am

Subscribe [4]
  • #1 / Dec 14, 2010 10:58am

    Neil Evans

    1403 posts

    Banging my head here over somehting that is probably very simple like a typo… but why is this saying no valid email when i have defined it in the parameters?
    **Note** email module is installed and buildnumber 20101020 Latest
    This is in its own template for testing, hence everything is tripped out and still failing.

    {exp:email:contact_form 
       user_recipients="false" 
       recipients="[email protected]" 
       return="|Return to the Site"}
    
    <input type="text" name="name" maxlength="55" class="input" />
    
    <input type="text" id="from" name="from" maxlength="55" class="input" />
    
    <textarea id="message" name="message" class="textarea" ></textarea>
    
    <input type="hidden" id="subject" name="subject" size="40" value="Website Enquiry" />
    
    <input name="submit" type='submit' value='Send' class="button" />
    
    {/exp:email:contact_form}
  • #2 / Dec 14, 2010 5:14pm

    Ingmar

    29245 posts

    I think it’s the lack of the “from” field, which isn’t defined in your parameters. Are you filling out the form completely?

  • #3 / Dec 14, 2010 5:26pm

    Neil Evans

    1403 posts

    i might be wrong, but isn’t the second input field down the from field? it has the name and id of “from” at least! lol

  • #4 / Dec 15, 2010 8:57am

    Sue Crocker

    26054 posts

    But did you put in an email address in that field?

    See the sample form: http://ellislab.com/expressionengine/user-guide/modules/email/contact_form.html

    The from field needs to be an email address.

  • #5 / Dec 15, 2010 9:24am

    Neil Evans

    1403 posts

    yes. when filling in the form i put a valid email address in that field. i tried multiple email addresses from mine, to hotmail to gmail to local domain adresses.

    And the example you sent me is great as it holds the member email address. but i am not using members hence no value field and it manually being entered on the form page.

    Any other reasons why this is not working? or is it a bug?

  • #6 / Dec 15, 2010 4:56pm

    Ingmar

    29245 posts

    What happens when you do hardcode a From: address, like so?

    <input type="hidden" id="from" name="from" value="[email protected]" />
  • #7 / Dec 15, 2010 5:09pm

    Neil Evans

    1403 posts

    I thought pretty much the same as you, and tested this a day ago and again today. Still the same, field being interpreted as no valid email. Whether is set value=”“, or value=“[email protected]” or remove value al together.

    I have noticed that a site where this was working, has also stopped, on a different CMS, and another EE1 version suffering the same - which also once worked. I am sensing this is a host issue, as that is the only coincidence at this point. I’ll speak to them, but not sure how they could be interfering here! but will find out.

    Thanks for your help.

  • #8 / Dec 16, 2010 3:57am

    John Henry Donovan

    12339 posts

    nevsie,

    Be sure to let us know what the host says. Hopefully it is something simple

  • #9 / Dec 16, 2010 6:03am

    Neil Evans

    1403 posts

    The host is blaming a bug in a version of PHP that was very quickly fixed. I cannot say for sure, but it sounds like a fob off. Anyhow, yes the problem was host related, other customer using far wider array of CMS’s and scripts reported the same and they fixed the problem.

    Apologies for addressing support when it was the host - still not sure what they had/have done!

  • #10 / Dec 16, 2010 10:59am

    Sue Crocker

    26054 posts

    Glad you were able to find out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases