Answers.Body: <p>That is the expected behavior. The preview replaces tokens based on the the logged-in viewer. If you send the email, the tokens will be replaced appropriately for each recipient.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-15T20:45:25.967Z
Answers.Text: Sending the emails to different mail providers it seems that the attribute cannot be read from gmail/outlook but it can be read from yahoo. Is there any way to check if the name is coming with the email? Maybe checking the source code of the email can give me more information?
  If it helps yahoo mail comes as plain text which is weird since I have tested the template on a service which checks with different providers.
Answers.UserDisplayName: angel limneos
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-15T22:16:08.417Z
Answers.Text: You should be able to see you HTML email in Yahoo. 
  I don't know what you mean by "the attribute". 
  
  The various email clients/services each support a different subset of HTML. See http://stackoverflow.com/questions/12276995/html-email-looks-different-in-yahoo-hotmail-and-gmail
Answers.UserDisplayName: BobS
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-15T22:58:55.890Z
Answers.Text: I know various email clients support different subset of html, that is why i tested my html template on such a service which tests different providers and clients. By attribute I was talking about {contact.first_name} it gets displayed correctly in yahoo but not in gmail/outlook under the same template.
Answers.UserDisplayName: angel limneos
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-15T23:23:13.233Z
Answers.Text: In CiviCRM terminology, {contact.first_name} is called a token. Are you saying that you're sending it to Contact-A in Yahoo (and seeing Contact-A's first name) and to Contact-B in gmail/outlook (and not seeing Contact-B's first name)? What exactly are you seeing in gmail/outlook that makes you say it does not get displayed correctly, and what do you expect to see?
Answers.UserDisplayName: BobS
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-18T14:44:41.760Z
Answers.Text: I re-tested and everything seems fine, i was making a mistake with profiles that is why token was not recognized
Answers.UserDisplayName: angel limneos
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-04-15T20:29:31.593Z
Answers.LastActivityDate: 2017-04-15T20:29:31.593Z
Answers.UserDisplayName: BobS
Body: <p>I have a question, I am running Drupal 7.54 and CiviCRM 4.7.18. I have created an html template with 3 tokens (from Mailings->New Mailing) {contact.first_name} and the two required which are {domain.address}{action.optOutUrl}</p>
  
  <p>My problem is that in html preview of the email, The contact.firstname points to the name of the sender instead to the 1 participant of the group in the mass-mailing option. I wonder why this is happening. Any clues?</p>
  
  <p>The other 2 tokens are filled correcly in html preview</p>
  
Tags: <civimail><tokens>
Title: Civimail token not recognized
ThreadText: # Civimail token not recognized
  
  (Asked by: username_0 on 2017-04-15)
  
  I have a question, I am running Drupal 7.54 and CiviCRM 4.7.18. I have created an html template with 3 tokens (from Mailings->New Mailing) {contact.first\_name} and the two required which are {domain.address}{action.optOutUrl}
  
  My problem is that in html preview of the email, The contact.firstname points to the name of the sender instead to the 1 participant of the group in the mass-mailing option. I wonder why this is happening. Any clues?
  
  The other 2 tokens are filled correcly in html preview
  
  **Tags:** civimail, tokens
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-04-15. Score: 2 | Accepted answer
  
  That is the expected behavior. The preview replaces tokens based on the the logged-in viewer. If you send the email, the tokens will be replaced appropriately for each recipient.
  
  > **Comments:**
  > **username_0**: Sending the emails to different mail providers it seems that the attribute cannot be read from gmail/outlook but it can be read from yahoo. Is there any way to check if the name is coming with the email? Maybe checking the source code of the email can give me more information? If it helps yahoo mail comes as plain text which is weird since I have tested the template on a service which checks with different providers.  
  > **username_1**: You should be able to see you HTML email in Yahoo.  I don't know what you mean by "the attribute".   The various email clients/services each support a different subset of HTML. See http://stackoverflow.com/questions/12276995/html-email-looks-different-in-yahoo-hotmail-and-gmail  
  > **username_0**: I know various email clients support different subset of html, that is why i tested my html template on such a service which tests different providers and clients. By attribute I was talking about {contact.first_name} it gets displayed correctly in yahoo but not in gmail/outlook under the same template.  
  > **username_1**: In CiviCRM terminology, {contact.first_name} is called a token. Are you saying that you're sending it to Contact-A in Yahoo (and seeing Contact-A's first name) and to Contact-B in gmail/outlook (and not seeing Contact-B's first name)? What exactly are you seeing in gmail/outlook that makes you say it does not get displayed correctly, and what do you expect to see?  
  > **username_0**: I re-tested and everything seems fine, i was making a mistake with profiles that is why token was not recognized  
  
  ---
  
  