<p>If you're using <code>phpmail</code> or <code>sendmail</code> under Settings->Email in the control panel, they are notoriously unreliable at delivering emails consistently.</p>

<p>Try using a proper SMTP relay or a transactional email provider like <a href="https://mandrill.com/" rel="nofollow">Mandrill</a>.</p>

CC BY-SA 3.0
2017-11-05T16:14:29.073Z
Recently I discovered mailjet. 6000 mails per moth for free.
Martijn La Feber
CC BY-SA 3.0
2015-02-26T16:35:09.710Z
2015-02-26T16:35:09.710Z
Brad Bell
<p>I'm using the following form, and occasionally through testing the e-mail activation link will send, however the majority of time it never gets sent. Did I do something wrong with the form?</p>

<pre><code>&lt;form method="post" accept-charset="UTF-8"&gt;
        {{ getCsrfInput() }}
        &lt;input type="hidden" name="action" value="users/saveUser"&gt;
        &lt;input type="hidden" name="redirect" value="/success/"&gt;

        {% 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;h3&gt;&lt;label for="username"&gt;Username&lt;/label&gt;&lt;/h3&gt;
        &lt;input id="username" type="text" name="username"
            {%- if account is defined %} value="{{ account.username }}"{% endif -%}&gt;

        {% if account is defined %}
            {{ errorList(account.getErrors('username')) }}
        {% endif %}

        &lt;h3&gt;&lt;label for="email"&gt;Email&lt;/label&gt;&lt;/h3&gt;
        &lt;input id="email" type="text" name="email"
            {%- if account is defined %} value="{{ account.email }}"{% endif %}&gt;

        {% if account is defined %}
            {{ errorList(account.getErrors('email')) }}
        {% endif %}

        &lt;h3&gt;&lt;label for="password"&gt;Password&lt;/label&gt;&lt;/h3&gt;
        &lt;input id="password" type="password" name="password"&gt;

        {% if account is defined %}
            {{ errorList(account.getErrors('password')) }}
        {% endif %}

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

CC BY-SA 3.0
2015-02-26T09:04:53.537Z
The form looks fine. If you turn on debug mode and look at your craft.log you should be able to see if craft attempted to send an email or not, or if there was an error. Might also check that they're not getting spam filtered. The `'testToEmailAddress'` in your config file is also useful.
Douglas McDonald
<users><form><emails><post>
Registration email link not being sent
# Registration email link not being sent

(Asked by: username_0 on 2015-02-26)

I'm using the following form, and occasionally through testing the e-mail activation link will send, however the majority of time it never gets sent. Did I do something wrong with the form?

        {{ getCsrfInput() }}
        
        

        {% macro errorList(errors) %}
            {% if errors %}
                
                    {% for error in errors %}
                        {{ error }}
                    {% endfor %}
                
            {% endif %}
        {% endmacro %}

        {% from _self import errorList %}

        Username
        

        {% if account is defined %}
            {{ errorList(account.getErrors('username')) }}
        {% endif %}

        Email
        

        {% if account is defined %}
            {{ errorList(account.getErrors('email')) }}
        {% endif %}

        Password
        

        {% if account is defined %}
            {{ errorList(account.getErrors('password')) }}
        {% endif %}

**Tags:** users, form, emails, post
> **Comments:**
> **username_1**: The form looks fine. If you turn on debug mode and look at your craft.log you should be able to see if craft attempted to send an email or not, or if there was an error. Might also check that they're not getting spam filtered. The `'testToEmailAddress'` in your config file is also useful.  

---

## 1 answers

### Answer by username_2 on 2015-02-26. Score: 2

If you're using `phpmail` or `sendmail` under Settings->Email in the control panel, they are notoriously unreliable at delivering emails consistently.

Try using a proper SMTP relay or a transactional email provider like [Mandrill](https://mandrill.com/).

> **Comments:**
> **username_3**: Recently I discovered mailjet. 6000 mails per moth for free.  

---

