<p>This is possible with the Sprout Forms Invisible Field (be sure to update to the latest version). Using the Invisible Field will ensure your email address never shows up in the template. To set this up:</p>

<p>1) Add an Invisible Field (<code>invisibleFieldHandle</code>) to your form and set its value to <code>{recipient}</code></p>

<p>2) Setup a Notification Email and set your Recipient field to the name of your Invisible Field Handle: <code>{invisibleFieldHandle}</code></p>

<p>3) Before your Sprout Forms <code>displayForm</code> tag, set the value of the Email Address where you want to trigger the Notification Email:</p>

<pre><code>{% do craft.sproutForms.addFieldVariables({ 
  recipient: 'email@website.com'
}) %}

{% craft.sproutForms.displayForm('contact') %}
</code></pre>

CC BY-SA 4.0
2018-12-17T22:25:18.687Z
2018-12-17T22:25:18.687Z
Ben Parizek
<p>Okay, so similar issue to this question (<a href="https://craftcms.stackexchange.com/questions/19505/sprout-email-notifications-setting-the-recipient">Sprout email notifications - setting the recipient?</a>). I must be doing something stupid here because. Trying to set the recipient from an entry form, with a hidden field:</p>

<pre><code>&lt;input type="hidden" name="recipient" value="{{ 'name@address.co.uk'|hash }}"&gt;
</code></pre>

<p>Then in the control panel, the <em>Recipients</em> field has {recipient}. That should work right, but I don't receive the email. If I manually set an email address in the control panel <em>Recipients</em> field, it works fine.</p>

CC BY-SA 4.0
2018-10-29T23:44:30.577Z
Does it work if you don't hash the email? `value="name@address.co.uk"`
Simon Kuran
CC BY-SA 4.0
2018-10-30T13:18:27.063Z
Hi Simon. Nope, hash or no hash makes no difference.
Ian Ebden
CC BY-SA 4.0
2018-10-30T13:23:46.073Z
Are you using the Sprout Forms Hidden field? Or is this some other field type that you are hard coding in your Form Templates? Sprout Forms does support a default Email Dropdown field that would handle the obfuscation for you for pre-defined email addresses. You could add a hidden class to the field in the CP.
Ben Parizek
CC BY-SA 4.0
2018-10-30T13:28:06.907Z
Hey Ben. It's just my own field. Doesn't need obfuscation really, since this is a members-only page.
Ian Ebden
<plugin-sproutemail>
Set Recipient in Sprout Email Notification
# Set Recipient in Sprout Email Notification

(Asked by: username_0 on 2018-10-29)

Okay, so similar issue to this question (Sprout email notifications - setting the recipient?). I must be doing something stupid here because. Trying to set the recipient from an entry form, with a hidden field:


Then in the control panel, the Recipients field has {recipient}. That should work right, but I don't receive the email. If I manually set an email address in the control panel Recipients field, it works fine.

**Tags:** plugin-sproutemail

> **Comments:**
> **username_1**: Does it work if you don't hash the email? `value="name@address.co.uk"`  
> **username_0**: Hi Simon. Nope, hash or no hash makes no difference.  
> **username_2**: Are you using the Sprout Forms Hidden field? Or is this some other field type that you are hard coding in your Form Templates? Sprout Forms does support a default Email Dropdown field that would handle the obfuscation for you for pre-defined email addresses. You could add a hidden class to the field in the CP.  
> **username_0**: Hey Ben. It's just my own field. Doesn't need obfuscation really, since this is a members-only page.  

---

## 1 answers

### Answer by username_2 on 2018-12-17. Score: 1

This is possible with the Sprout Forms Invisible Field (be sure to update to the latest version). Using the Invisible Field will ensure your email address never shows up in the template. To set this up:
1) Add an Invisible Field (invisibleFieldHandle) to your form and set its value to {recipient}
2) Setup a Notification Email and set your Recipient field to the name of your Invisible Field Handle: {invisibleFieldHandle}
3) Before your Sprout Forms displayForm tag, set the value of the Email Address where you want to trigger the Notification Email:
{% do craft.sproutForms.addFieldVariables({ 
  recipient: 'email@website.com'
}) %}

{% craft.sproutForms.displayForm('contact') %}


---

