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.

My contact form is not sending email (ee2.0.1)

February 03, 2010 11:07pm

Subscribe [7]
  • #1 / Feb 03, 2010 11:07pm

    arteylogica

    37 posts

    This question may be related to a resolved thread.

    Hi,

    I have read a few threads on contact forms not sending emails and and I still can’t get mine to work.

    I am using EE 2.0.1 Build: 20100121 on a DramHost server. I can send email via Communicate.

    My code:

    {exp:email:contact_form user_recipients="false" recipients="[email protected]" charset="utf-8"}
    <div id="comment-form" class="span-16">
        <div class="span-16">
            <h3>Dejenos un mensaje aquí:</h3>
    <p>        * Por favor no deje de llenar los espacios marcados<br />
        </div><br />
        <div id="form-titulos" class="span-4"><br />
            <label for="name">Nombre:</label><br />
            <label for="from">Email:</label><br />
            <label for="telefono">Teléfono:</label><br />
            {if logged_out}<br />
            {captcha}:<br />
            {/if}<br />
            <label for="message">Mensaje:<br />
        </div><!-- end span-4 del lado de los titulos del form --><br />
        <div class="span-12 last"><br />
            <input type="text" id="name" name="name" class="entrada" /> *<br />
            <input type="text" id="from" name="from" class="entrada" /> *<br />
            <input type="text" id="telefono" name="message[]" class="entrada" /></p><br />
            {if logged_out}<br />
            <input type="text" name="captcha" value="" maxlength="20" /> *<br />
            {/if}<br />
            <textarea id="message" name="message" class="entrada"></textarea><br />
            <input name="submit" type='submit' value='Enviar mensaje' /></p><br />
        </div><!-- end span-12 del lado de los inputs --><br />
    </div><!-- end comment form span-16 --><br />
    {/exp:email:contact_form}

    Thanks for the help in advance.

    Moved to EE2 Public Beta Tech Support by Moderator

  • #2 / Feb 04, 2010 2:07am

    John Henry Donovan

    12339 posts

    arteylogica,

    Is this the full version or Trial of EE?

    Can you test with the example from the docs please?

    EE Docs : Email Contact Form

    What email protocol are you using?
    Do you have a Return email address for auto-generated emails filled in

  • #3 / Feb 04, 2010 2:53pm

    arteylogica

    37 posts

    John,

    I am using the full version.

    I tried the example in the documentation, and others I found that you suggested in other forum posts and I get no results from any of them.

  • #4 / Feb 04, 2010 5:19pm

    Ingmar

    29245 posts

    Can you please try with a simplified template, preferably using some sample code from the docs? What happens when you submit such a form? Do you get an error message?

  • #5 / Feb 04, 2010 7:23pm

    arteylogica

    37 posts

    Ingmar,

    I have tested the docs code here:

    http://www.arteylogica.com/site/test

    When you hit send, it takes me to the index page, no errors.

  • #6 / Feb 04, 2010 7:29pm

    arteylogica

    37 posts

    I figured out what is going on, but don’t know how to fix it.

    In the admin > General Config section I have set the “Name of your site’s index page” to be empty. This way the “index.php” won’t show on my url’s when created dynamically. If I do use the index.php in there, it all works perfect.

    Is there anything else I need to change to make this work?

    PS> All the links under the “ExpressionEngine Info” footer tab don’t work either when there is no index.php in the “Name of your site’s index page”.

  • #7 / Feb 04, 2010 7:34pm

    Adam Dorsey

    1439 posts

    .htaccess can cause contact forms to break. So to confirm, you are using a .htaccess file to remove the index.php file from the domain?

  • #8 / Feb 04, 2010 7:59pm

    arteylogica

    37 posts

    I am using the “File and Directory Check” Method to remove the index.php.

    The problem is if I remove it from the “Name of your site’s index page” field under General Configuration in the Control Panel.

    I guess the problem is not the form any longer. That is fixed if I leave the index.php in the “Name of your site’s index page” field.

    The question now is about removing the index.php section of the URL when it is built dynamically. The .htaccess method I am using only removes it from URL’s of directories that actually do exist.

    Thanks for the help so far, and sorry I didn’t catch that earlier.

  • #9 / Feb 04, 2010 8:03pm

    Mark Bowen

    12637 posts

    Looks like you also have a Captcha in play too maybe. If you try to submit the form it comes up with :

    The following errors were encountered
    You must answer the question before you are allowed to post

  • #10 / Feb 04, 2010 8:10pm

    Adam Dorsey

    1439 posts

    We don’t support .htaccess, or index.php removal, but I have always preferred the Exclude Method.

  • #11 / Feb 04, 2010 8:46pm

    arteylogica

    37 posts

    Thank you all for your help and time.

  • #12 / Feb 04, 2010 8:50pm

    Adam Dorsey

    1439 posts

    No problem. Instead of closing the thread, I’ll move it over to How-to for you.

    Please feel free to post again.

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

ExpressionEngine News!

#eecms, #events, #releases