Answers.Body: <p>There are a couple of things I'm seeing above that may be your issue.</p>
  <p>First, this is a question about Sprout Forms and it looks like your email is form-related however the Notification Event you have selected is for Craft Entries ('When an entry is saved'). If you want to trigger an email when a Form Entry is saved you'll want to select the Sprout Forms Notification Event: 'When a form entry is saved'.</p>
  <p>Second, the 'Basic Notification' template is not going to support custom Twig code in the Body field. So, if you want to use custom twig code you'll have to create <a href="https://sprout.barrelstrengthdesign.com/docs/email/template-overrides.html" rel="nofollow noreferrer">custom email templates</a>.</p>
  <p>With those items updated, now that you have the Sprout Forms event selected, the event will provide you with the Form Entry Submission that triggered the event as an <code>object</code> variable to your template, so you won't need to try to find it using <code>lastEntry</code> and can access the form using the object variable instead. See: <a href="https://sprout.barrelstrengthdesign.com/docs/email/personalization.html" rel="nofollow noreferrer">Personalization</a> and <a href="https://sprout.barrelstrengthdesign.com/docs/email/object-syntax.html#entry-pages" rel="nofollow noreferrer">Object Syntax</a> doc pages for more on how those work.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-01-26T19:00:30.750Z
Answers.LastActivityDate: 2022-01-26T19:00:30.750Z
Answers.UserDisplayName: Ben Parizek
Body: <p>We are using for our first CraftCMS website:</p>
  <ul>
  <li>Sprout forms</li>
  <li>Sprout e-mail</li>
  </ul>
  <p>In our &quot;sprout-forms/entries&quot; all entries show up. So all fields got saved perfect.
  Now we would like to send to an e-mail a confirmation message with the same form fields.</p>
  <p>So I created a notification, you can find a screenshot in the attachment.<a href="https://i.sstatic.net/xQJAA.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xQJAA.png" alt="enter image description here" /></a></p>
  <p>Now we wonder, what do we have to do to when a user submits the Contact form that de form field values are being sent to a email address we specify in the <code>notification to:</code> field?</p>
  <p>When I test the notification using the 'test' button in the overview it works perfect. In production/contact form on the website it fails.</p>
  <p>Thanks a lot!</p>
  
Tags: <craft3><plugin-sproutforms><plugin-sproutemail>
Title: Sprout Forms + Sprout e-mail - Contact form confirmation e-mail
ThreadText: # Sprout Forms + Sprout e-mail - Contact form confirmation e-mail
  
  (Asked by: username_0 on 2022-01-25)
  
  We are using for our first CraftCMS website:
  
  * Sprout forms
  * Sprout e-mail
  
  In our "sprout-forms/entries" all entries show up. So all fields got saved perfect.
  Now we would like to send to an e-mail a confirmation message with the same form fields.
  
  So I created a notification, you can find a screenshot in the attachment.[![enter image description here](https://i.sstatic.net/xQJAA.png)](https://i.sstatic.net/xQJAA.png)
  
  Now we wonder, what do we have to do to when a user submits the Contact form that de form field values are being sent to a email address we specify in the `notification to:` field?
  
  When I test the notification using the 'test' button in the overview it works perfect. In production/contact form on the website it fails.
  
  Thanks a lot!
  
  **Tags:** craft3, plugin-sproutforms, plugin-sproutemail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-01-26. Score: 1
  
  There are a couple of things I'm seeing above that may be your issue.
  
  First, this is a question about Sprout Forms and it looks like your email is form-related however the Notification Event you have selected is for Craft Entries ('When an entry is saved'). If you want to trigger an email when a Form Entry is saved you'll want to select the Sprout Forms Notification Event: 'When a form entry is saved'.
  
  Second, the 'Basic Notification' template is not going to support custom Twig code in the Body field. So, if you want to use custom twig code you'll have to create [custom email templates](https://sprout.barrelstrengthdesign.com/docs/email/template-overrides.html).
  
  With those items updated, now that you have the Sprout Forms event selected, the event will provide you with the Form Entry Submission that triggered the event as an `object` variable to your template, so you won't need to try to find it using `lastEntry` and can access the form using the object variable instead. See: [Personalization](https://sprout.barrelstrengthdesign.com/docs/email/personalization.html) and [Object Syntax](https://sprout.barrelstrengthdesign.com/docs/email/object-syntax.html#entry-pages) doc pages for more on how those work.
  
  
  ---
  
  