<p>I figured out what was happening. There was a conflict with a previously installed plugin, Sprout Invisible Captcha.</p>

CC BY-SA 3.0
2015-09-12T04:31:06.203Z
Might be worth contacting Barrel Strength Design to let them know about the conflict... that sounds like a bug to me.
Lindsey D
CC BY-SA 3.0
2016-11-02T15:05:22.217Z
I've just hit this same issue on a live site. Disabling Sprout Invisible Captcha fixed it. On version 2.6.2949 of Craft and 0.8.3 of Sprout Invisible Captcha.
richardpixel
CC BY-SA 3.0
2015-09-11T19:04:43.033Z
2015-09-11T19:04:43.033Z
SteveO
<p><code>phpmail</code> is notoriously unreliable at delivering emails.  It might work fine for you locally when sending a test email to yourself, but getting an email reliably delivered on the "real" internet is much more difficult.</p>

<p>Most likely you were just running into that unreliability and swapping to a transactional email provider like Mandrill solved the issue.</p>

CC BY-SA 3.0
2015-09-09T20:10:28.267Z
I think this is a problem with the Contact From plugin. I have tried it on three different servers using a variety of email protocols, and I still get the same result.

 The Mandrill plugin seems to work fine, but it is limited in functionality.
SteveO
CC BY-SA 3.0
2015-09-11T18:34:43.213Z
I also noticed that error messages are not working on this plugin either.  Could I be missing something simple?
SteveO
CC BY-SA 3.0
2015-09-09T18:26:09.947Z
2015-09-09T18:26:09.947Z
Brad Bell
<p>I'm using the <a href="https://github.com/pixelandtonic/ContactForm" rel="nofollow">Pixel &amp; Tonic Contact Form</a> plugin.
I have created a template and I'm using the example code from the README file.</p>

<p>No email is being sent. Upon submit it redirects to the form page.  I have successfully sent myself an email test using Php Mail.</p>

<p>Do I need a template at:
<code>&lt;input type="hidden" name="action" value="contactForm/sendMessage"&gt;</code></p>

<p>This is my code:</p>

<pre><code>{% macro errorList(errors) %}
        {% if errors %}
            &lt;ul class="errors"&gt;
                {% for error in errors %}
                    &lt;li&gt;{{ error }}&lt;/li&gt;
                {% endfor %}
            &lt;/ul&gt;
        {% endif %}
    {% endmacro %}

    {% from _self import errorList %}

    &lt;form method="post" action="" accept-charset="UTF-8"&gt;
        {{ getCsrfInput() }}
        &lt;input type="hidden" name="action" value="contactForm/sendMessage"&gt;
        &lt;input type="hidden" name="redirect" value="/thank-you-for-contacting-us"&gt;

        &lt;h3&gt;&lt;label for="fromName" style="display:block"&gt;Your Name&lt;/label&gt;&lt;/h3&gt;
        &lt;input id="fromName" type="text" name="fromName" value="{% if message is defined %}{{ message.fromName }}{% endif %}"&gt;
        {{ message is defined and message ? errorList(message.getErrors('fromName')) }}

        &lt;h3&gt;&lt;label for="fromEmail" style="display:block"&gt;Your Email&lt;/label&gt;&lt;/h3&gt;
        &lt;input id="fromEmail" type="text" name="fromEmail" value="{% if message is defined %}{{ message.fromEmail }}{% endif %}"&gt;
        {{ message is defined and message ? errorList(message.getErrors('fromEmail')) }}

        &lt;h3&gt;&lt;label for="subject" style="display:block"&gt;Subject&lt;/label&gt;&lt;/h3&gt;
        &lt;input id="subject" type="text" name="subject" value="{% if message is defined %}{{ message.subject }}{% endif %}"&gt;
        {{ message is defined and message ? errorList(message.getErrors('subject')) }}

        &lt;h3&gt;&lt;label for="message" style="display:block"&gt;Message&lt;/label&gt;&lt;/h3&gt;
        &lt;textarea rows="10" cols="40" id="message" name="message"&gt;{% if message is defined %}{{ message.message }}{% endif %}&lt;/textarea&gt;
        {{ message is defined and message ? errorList(message.getErrors('message')) }}

        &lt;input id="kneesbees" class="kneesbees" name="kneesbees" type="text"&gt;

&lt;input type="submit" value="Send"&gt;
    &lt;/form&gt;
</code></pre>

CC BY-SA 3.0
2015-09-09T08:57:23.120Z
You don't need a template at `contactForm/sendMessage` - that is the plugin action. So after submitting you don't get sent to "thank-you-for-contacting-us" ?
Luke Holder
CC BY-SA 3.0
2015-09-09T13:44:57.770Z
Thank you for responding. 
After submitting, the page reloads and no email is being sent.
SteveO
CC BY-SA 3.0
2015-09-09T15:47:03.107Z
It seems like the plugin is hitting a snag somewhere. Is this site in `devMode`? If so, you should see any problems and errors showing up in the logs.
Bryan Redeagle
CC BY-SA 3.0
2015-09-09T16:18:21.820Z
The site is in devMode. Not really sure what to look for. I don't see anything in the log that is standing out.

Another oddity. If I fill out my honeypot field, it sends me to the thank you page but still does not send the email.

Could there be a server setting that is cause my issue?
SteveO
CC BY-SA 3.0
2015-09-09T17:40:16.610Z
I have moved over the the Mandrill plugin and have it working there.  I would love to see someone post a solution if they find it. Thank you.
SteveO
<plugin-contactform>
Contact Form not sending
# Contact Form not sending

(Asked by: username_0 on 2015-09-09)

I'm using the Pixel & Tonic Contact Form plugin.
I have created a template and I'm using the example code from the README file.
No email is being sent. Upon submit it redirects to the form page.  I have successfully sent myself an email test using Php Mail.
Do I need a template at:

This is my code:
{% macro errorList(errors) %}
        {% if errors %}
            
                {% for error in errors %}
                    {{ error }}
                {% endfor %}
            
        {% endif %}
    {% endmacro %}

    {% from _self import errorList %}

    
        {{ getCsrfInput() }}
        
        

        Your Name
        
        {{ message is defined and message ? errorList(message.getErrors('fromName')) }}

        Your Email
        
        {{ message is defined and message ? errorList(message.getErrors('fromEmail')) }}

        Subject
        
        {{ message is defined and message ? errorList(message.getErrors('subject')) }}

        Message
        {% if message is defined %}{{ message.message }}{% endif %}
        {{ message is defined and message ? errorList(message.getErrors('message')) }}

**Tags:** plugin-contactform
> **Comments:**
> **username_1**: You don't need a template at `contactForm/sendMessage` - that is the plugin action. So after submitting you don't get sent to "thank-you-for-contacting-us" ?  
> **username_0**: Thank you for responding.  After submitting, the page reloads and no email is being sent.  
> **username_2**: It seems like the plugin is hitting a snag somewhere. Is this site in `devMode`? If so, you should see any problems and errors showing up in the logs.  
> **username_0**: The site is in devMode. Not really sure what to look for. I don't see anything in the log that is standing out.  Another oddity. If I fill out my honeypot field, it sends me to the thank you page but still does not send the email.  Could there be a server setting that is cause my issue?  
> **username_0**: I have moved over the the Mandrill plugin and have it working there.  I would love to see someone post a solution if they find it. Thank you.  

---

## 2 answers

### Answer by username_0 on 2015-09-11. Score: 3

I figured out what was happening. There was a conflict with a previously installed plugin, Sprout Invisible Captcha.

> **Comments:**
> **username_3**: Might be worth contacting Barrel Strength Design to let them know about the conflict... that sounds like a bug to me.  
> **username_4**: I've just hit this same issue on a live site. Disabling Sprout Invisible Captcha fixed it. On version 2.6.2949 of Craft and 0.8.3 of Sprout Invisible Captcha.  

---

### Answer by username_5 on 2015-09-09. Score: 0

`phpmail` is notoriously unreliable at delivering emails. It might work fine for you locally when sending a test email to yourself, but getting an email reliably delivered on the "real" internet is much more difficult.

Most likely you were just running into that unreliability and swapping to a transactional email provider like Mandrill solved the issue.

> **Comments:**
> **username_0**: I think this is a problem with the Contact From plugin. I have tried it on three different servers using a variety of email protocols, and I still get the same result.   The Mandrill plugin seems to work fine, but it is limited in functionality.  
> **username_0**: I also noticed that error messages are not working on this plugin either.  Could I be missing something simple?  

---

