<p>Make your own little plugin that listens to the plugin's <a href="https://github.com/pixelandtonic/ContactForm#the-contactformbeforesend-event" rel="nofollow"><code>contactForm.beforeSend</code></a> event
and sends the confirmation mail.</p>

CC BY-SA 3.0
2014-12-02T14:27:05.657Z
Uuuh. Me making a plugin? Unfortunately not. So I guess its not possible out of the box.
KSPR
CC BY-SA 3.0
2014-12-02T12:54:42.080Z
2014-12-02T12:54:42.080Z
carlcs
<p>Just saw this, it is possible without building a plugin by hacking the standard contactform plugin. In the file contactformservive.php add:</p>

<pre><code>$email-&gt;cc = array(
    array('name' =&gt; $message-&gt;fromName, 'email' =&gt; $message-&gt;replyTo)
);
</code></pre>

<p>after $email->body </p>

<p>This will send an EXACT copy to the form submitter. It has one drawback that I noticed; the reply address is also the submitter, so if he/she wants to answer that mail it will return to him/herself. You could add a notion in the body with a standard reply address to prevent this. </p>

CC BY-SA 3.0
2014-12-24T17:01:32.303Z
2015-01-02T13:08:05.780Z
2015-01-02T13:08:05.780Z
noregt
<p>Apparently someone made a plugin that's doing exactly that <a href="https://straightupcraft.com/craft-plugins/contact-form-receipts" rel="nofollow">https://straightupcraft.com/craft-plugins/contact-form-receipts</a></p>

CC BY-SA 3.0
2015-11-23T14:47:15.000Z
2015-11-23T14:47:15.000Z
rppld
<p>How can I send a confirmation Mail to the user who submits the form within the <a href="https://github.com/pixelandtonic/ContactForm" rel="nofollow">ContactForm Plugin</a> ?</p>

<plugin-contactform>
ContactForm - Send a confirmation mail
# ContactForm - Send a confirmation mail

(Asked by: username_0 on 2014-12-02)

How can I send a confirmation Mail to the user who submits the form within the [ContactForm Plugin](https://github.com/pixelandtonic/ContactForm) ?

**Tags:** plugin-contactform

---

## 3 answers

### Answer by username_3 on 2015-11-23. Score: 4 | Accepted answer

Apparently someone made a plugin that's doing exactly that <https://straightupcraft.com/craft-plugins/contact-form-receipts>


---

### Answer by username_1 on 2014-12-02. Score: 4

Make your own little plugin that listens to the plugin's [`contactForm.beforeSend`](https://github.com/pixelandtonic/ContactForm#the-contactformbeforesend-event) event
and sends the confirmation mail.

> **Comments:**
> **username_0**: Uuuh. Me making a plugin? Unfortunately not. So I guess its not possible out of the box.  

---

### Answer by username_2 on 2014-12-24. Score: 2

Just saw this, it is possible without building a plugin by hacking the standard contactform plugin. In the file contactformservive.php add:
$email->cc = array(
    array('name' => $message->fromName, 'email' => $message->replyTo)
);

after $email->body 
This will send an EXACT copy to the form submitter. It has one drawback that I noticed; the reply address is also the submitter, so if he/she wants to answer that mail it will return to him/herself. You could add a notion in the body with a standard reply address to prevent this.


---

