Answers.Body: <p>This should work:<br>
  <code>{{ object.userBooking.first().email }}</code></p>
  
  <p>I would check if the problem is with something else.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-11-03T14:07:04.113Z
Answers.Text: Yep, this worked - thanks Carl. I'd forgotten a completely different setting which was stopping it from working; this is the correct syntax. Sorry for the delay in reply, been away for 5 days!
Answers.UserDisplayName: darylknight
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-30T09:07:19.810Z
Answers.LastActivityDate: 2015-10-30T09:07:19.810Z
Answers.UserDisplayName: carlcs
Body: <p>I've got a form creating an entry in a Bookings channel which contains two fields, an Entries field (<code>eventBooking</code>) and a Users field (userBooking).</p>
  
  <p>I'm trying to get Sprout Email to send an email to the user selected in <code>userBooking</code>. Can anyone help me with the correct syntax please?</p>
  
  <p>I've tried the following which don't seem to work:</p>
  
  <p><code>{{ userBooking.first().email }}</code>
  <code>{{ object.userBooking.first().email }}</code>
  <code>{{ entry.userBooking.first().email }}</code>
  <code>{ object.userBooking.first().email }</code></p>
  
Tags: <plugin-sproutemail>
Title: What's the correct syntax for recipients in Sprout Email?
ThreadText: # What's the correct syntax for recipients in Sprout Email?
  
  (Asked by: username_0 on 2015-10-27)
  
  I've got a form creating an entry in a Bookings channel which contains two fields, an Entries field (`eventBooking`) and a Users field (userBooking).
  
  I'm trying to get Sprout Email to send an email to the user selected in `userBooking`. Can anyone help me with the correct syntax please?
  
  I've tried the following which don't seem to work:
  
  `{{ userBooking.first().email }}`
  `{{ object.userBooking.first().email }}`
  `{{ entry.userBooking.first().email }}`
  `{ object.userBooking.first().email }`
  
  **Tags:** plugin-sproutemail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-30. Score: 1 | Accepted answer
  
  This should work:  
  `{{ object.userBooking.first().email }}`
  
  I would check if the problem is with something else.
  
  > **Comments:**
  > **username_0**: Yep, this worked - thanks Carl. I'd forgotten a completely different setting which was stopping it from working; this is the correct syntax. Sorry for the delay in reply, been away for 5 days!  
  
  ---
  
  