1

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

1 Answer 1

2

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.

5
  • 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. Commented Apr 15, 2017 at 20:45
  • 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 stackoverflow.com/questions/12276995/…
    – BobS
    Commented Apr 15, 2017 at 22:16
  • 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. Commented Apr 15, 2017 at 22:58
  • 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?
    – BobS
    Commented Apr 15, 2017 at 23:23
  • I re-tested and everything seems fine, i was making a mistake with profiles that is why token was not recognized Commented Apr 18, 2017 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.