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.

Email contact form isn't working

July 10, 2014 4:07pm

Subscribe [3]
  • #1 / Jul 10, 2014 4:07pm

    gperrine

    4 posts

    I am using expressionengine 2.7.3 with multiple site manager. 

    I have one site where I have successfully set up an email contact form using the <exp:mail> tag.  I have tried to setup another site with a contact form using the <exp:mail> tag and it fails with this message

    The following errors were encountered
    â—¾The action you have requested is invalid.

    Return to Previous Page


    I have tried a emailtest.php on the server and am able to send mail fine. The tools | communicate feature works fine.

    I am at a lost as to what could be the issue.  I don’t recall having to do anything special to get the first site to work. 

    I’ve been through the settings comparing both sites and can find nothing different.

  • #2 / Jul 11, 2014 11:53am

    Kurt Deutscher

    827 posts

    I think it was around 2.7.3 that EE introduced the need for a hidden field for some older forms to comply with some new security changes. When it was first rolled out, the error a form submission could cause wasn’t very descriptive and might have been what you are seeing.

    <input type="hidden" name="XID" value="{XID_HASH}" />

    Try adding this hidden field to your form if it’s not already in there.

    That might be what you are running into.

     

  • #3 / Jul 11, 2014 3:45pm

    gperrine

    4 posts

    Yes I already tried that.  I can’t figure out why it works on one site and not the other when both are hosted on the same expressionengine installation.

  • #4 / Jul 20, 2014 4:04am

    Rob Allen

    3118 posts

    can you test using the stock email form code - http://ellislab.com/expressionengine/user-guide/add-ons/email/contact_form.html - remembere to change the recipients parameter…

  • #5 / Jul 22, 2014 9:58am

    gperrine

    4 posts

    Yes I have tried that, I get the same result.

  • #6 / Jul 22, 2014 10:38am

    Rob Allen

    3118 posts

    Have you got any template caching going on the page that the form appears on? If you have disable caching and try that…

  • #7 / Jul 22, 2014 10:42am

    gperrine

    4 posts

    Template caching is turned off.

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

ExpressionEngine News!

#eecms, #events, #releases