Answers.Body: <p>Your options are either:</p>
  
  <p>1) Hack the plugin to get it to add name and email to the body.</p>
  
  <p>2) Use a more robust <a href="http://straightupcraft.com/craft-plugins/sprout-forms" rel="nofollow">form-building plugin</a>.</p>
  
  <p>3) Use JavaScript to add a hidden input to the page that will add it to the body so they don't have to enter an email twice.  Something like:</p>
  
  <pre><code>&lt;input id="emailCopy" type="hidden" name="message[emailCopy]" value="my@email.com"&gt;
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-25T17:02:37.423Z
Answers.Text: This would be a great use-case for a plugin-hook.
Answers.UserDisplayName: Victor
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-25T17:23:23.187Z
Answers.Text: @VictorIn Yup... not a bad idea.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-25T18:02:27.617Z
Answers.Text: I've had all three options in my mind. Was hoping there would be some functionality available (the sprout plugin might be to much and is still in development). I've seen  a hack here, http://craftcms.stackexchange.com/questions/376/adding-cc-to-contact-form-plugin that might help a bit. A hook would be better yes, as a designer I'm not sure if that fits my bill
Answers.UserDisplayName: noregt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-31T08:58:53.053Z
Answers.Text: I've managed to hack the plugin so that it shows the sender and name. I've asked a developer to do this with a plugin hook, but that appears not to be possible. He needs an added emails.onBeforeSend event to the event list to do that. Is there a way that can be done (feature request I think?)
Answers.UserDisplayName: noregt
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-07-25T16:59:48.707Z
Answers.LastActivityDate: 2014-07-25T16:59:48.707Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>I ended up hacking the ContactFormService.php file with some extra code for the body</p>
  
  <p>It's actually quite simple:</p>
  
  <p>$email->body = "Sender: ".$message->fromName."\n\nEmail-addreas: ".$message->fromEmail."\n\nMessage: ".$message->message;</p>
  
  <p>Same thing for cc mail</p>
  
  <p>I understood 2.2 will have a plugin hook for this kind of added functionality (emails.onBeforeSend event)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-08-01T08:54:13.613Z
Answers.LastActivityDate: 2014-08-01T08:54:13.613Z
Answers.UserDisplayName: noregt
Body: <p>I'm currently working with the <a href="https://github.com/pixelandtonic/ContactForm/" rel="nofollow">Contact Form plugin</a> from P&amp;T. I don't need much more, but as usual the client wants to:</p>
  
  <ul>
  <li>See the email address and name in the body of the mail (he won't understand the way it works now). </li>
  </ul>
  
  <p>Is there a way to get this done?</p>
  
Tags: <plugin-contactform>
Title: P&T Contact Form plugin: How can I copy "name" and "email address" in the body of the mail?
ThreadText: # P&T Contact Form plugin: How can I copy "name" and "email address" in the body of the mail?
  
  (Asked by: username_0 on 2014-07-25)
  
  I'm currently working with the [Contact Form plugin](https://github.com/pixelandtonic/ContactForm/) from P&T. I don't need much more, but as usual the client wants to:
  
  * See the email address and name in the body of the mail (he won't understand the way it works now).
  
  Is there a way to get this done?
  
  **Tags:** plugin-contactform
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2014-08-01. Score: 4 | Accepted answer
  
  I ended up hacking the ContactFormService.php file with some extra code for the body
  
  It's actually quite simple:
  
  $email->body = "Sender: ".$message->fromName."\n\nEmail-addreas: ".$message->fromEmail."\n\nMessage: ".$message->message;
  
  Same thing for cc mail
  
  I understood 2.2 will have a plugin hook for this kind of added functionality (emails.onBeforeSend event)
  
  
  ---
  
  ### Answer by username_1 on 2014-07-25. Score: 2
  
  Your options are either:
  
  1) Hack the plugin to get it to add name and email to the body.
  
  2) Use a more robust [form-building plugin](http://straightupcraft.com/craft-plugins/sprout-forms).
  
  3) Use JavaScript to add a hidden input to the page that will add it to the body so they don't have to enter an email twice. Something like:
  
  ```
  <input id="emailCopy" type="hidden" name="message[emailCopy]" value="my@email.com">
  
  ```
  
  > **Comments:**
  > **username_2**: This would be a great use-case for a plugin-hook.  
  > **username_1**: @VictorIn Yup... not a bad idea.  
  > **username_0**: I've had all three options in my mind. Was hoping there would be some functionality available (the sprout plugin might be to much and is still in development). I've seen  a hack here, http://craftcms.stackexchange.com/questions/376/adding-cc-to-contact-form-plugin that might help a bit. A hook would be better yes, as a designer I'm not sure if that fits my bill  
  > **username_0**: I've managed to hack the plugin so that it shows the sender and name. I've asked a developer to do this with a plugin hook, but that appears not to be possible. He needs an added emails.onBeforeSend event to the event list to do that. Is there a way that can be done (feature request I think?)  
  
  ---
  
  