<p>Following Sprout Forms example templates (<em>/admin/sproutemail/settings/examples</em>): in your email.html file <code>Hi {{ object['yourName'] }}</code> or even <code>Hi {{ object.yourName }}</code>, should print <code>Hi Bob</code>.</p>

CC BY-SA 3.0
2017-11-30T15:45:58.950Z
Thanks. In the end I found that {{ element.yourName }} worked. Not sure if object and element are interchangeable? But thanks for the reply!
Garth
CC BY-SA 3.0
2017-11-30T16:11:22.230Z
I think it doesn't matter, and even {{ yourName }} should works as a shorthand.
Romain P.
CC BY-SA 3.0
2017-11-29T14:32:28.677Z
2017-11-29T14:32:28.677Z
Romain P.
<p>I've setup a custom email notification that is sent out after submitting a form. I want to have a set message but with a personalised greeting "Hi Bob". I have the email.html file and that works but I can't figure out how to display the persons name. In my example the field handle it yourName and the form handle is contactForm.</p>

<p>Is this possible?</p>

<plugin-sproutforms>
How to get submitted data in Sprout Forms custom email
# How to get submitted data in Sprout Forms custom email

(Asked by: username_0 on 2017-11-24)

I've setup a custom email notification that is sent out after submitting a form. I want to have a set message but with a personalised greeting "Hi Bob". I have the email.html file and that works but I can't figure out how to display the persons name. In my example the field handle it yourName and the form handle is contactForm.

Is this possible?

**Tags:** plugin-sproutforms

---

## 1 answers

### Answer by username_1 on 2017-11-29. Score: 2 | Accepted answer

Following Sprout Forms example templates (*/admin/sproutemail/settings/examples*): in your email.html file `Hi {{ object['yourName'] }}` or even `Hi {{ object.yourName }}`, should print `Hi Bob`.

> **Comments:**
> **username_0**: Thanks. In the end I found that {{ element.yourName }} worked. Not sure if object and element are interchangeable? But thanks for the reply!  
> **username_1**: I think it doesn't matter, and even {{ yourName }} should works as a shorthand.  

---

