Answers.Body: <p>This token doesn't exist as a CiviCRM token.  However, if you're using <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates" rel="nofollow noreferrer">Smarty rendering for CiviMail</a> then you can use the Smarty tokens,which wil include the email address.</p>
  
  <p>While Smarty rendering will add overhead to CiviMail, so does rendering non-contact tokens.  I'm not sure which way will be faster - or if that matters to you.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-31T16:33:15.487Z
Answers.Text: What would be the smarty field for email in this case? `{email}`?(!)
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-07T10:49:45.547Z
Answers.Text: Nope, I can't find the token despite enabling Smarty rendering. Annoying you can `{debug}` in mailing templates!
Answers.UserDisplayName: artfulrobot
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-31T16:22:39.777Z
Answers.LastActivityDate: 2017-08-31T16:22:39.777Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I'd like to include text in my mailings like:</p>
  
  <blockquote>
    <p>This email was sent to [contact.the_email_used_by_mailing] ...</p>
  </blockquote>
  
  <p>I am aware that I can use <code>[contact.email]</code> to bring in the <em>primary</em> email, but what if the bulk email is different? That could confuse a recipient so a thing that was meant to improve trust did the opposite.</p>
  
  <p>Is there either</p>
  
  <ol>
  <li><p>A token to pluck out the same email as CiviMail would have chosen (i.e. the bulk mail one, or failing that the primary one)?</p></li>
  <li><p>A token to insert whatever email CiviMail is using (although this is only relevant to one off test emails, so is probably less useful)</p></li>
  </ol>
  
  <p>Otherwise I'll write an extension that provides this.</p>
  
Tags: <civimail><tokens>
Title: Is there a token for the email used in a CiviMail mailing?
ThreadText: # Is there a token for the email used in a CiviMail mailing?
  
  (Asked by: username_0 on 2017-08-31)
  
  I'd like to include text in my mailings like:
  
  > This email was sent to [contact.the\_email\_used\_by\_mailing] ...
  
  I am aware that I can use `[contact.email]` to bring in the *primary* email, but what if the bulk email is different? That could confuse a recipient so a thing that was meant to improve trust did the opposite.
  
  Is there either
  
  1. A token to pluck out the same email as CiviMail would have chosen (i.e. the bulk mail one, or failing that the primary one)?
  2. A token to insert whatever email CiviMail is using (although this is only relevant to one off test emails, so is probably less useful)
  
  Otherwise I'll write an extension that provides this.
  
  **Tags:** civimail, tokens
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-08-31. Score: 1 | Accepted answer
  
  This token doesn't exist as a CiviCRM token. However, if you're using [Smarty rendering for CiviMail](https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+in+mail+templates) then you can use the Smarty tokens,which wil include the email address.
  
  While Smarty rendering will add overhead to CiviMail, so does rendering non-contact tokens. I'm not sure which way will be faster - or if that matters to you.
  
  > **Comments:**
  > **username_0**: What would be the smarty field for email in this case? `{email}`?(!)  
  > **username_0**: Nope, I can't find the token despite enabling Smarty rendering. Annoying you can `{debug}` in mailing templates!  
  
  ---
  
  