Hello!
I have the following problem:
tokens are not being replaced with a value in the confirmation e-mail automatically sent by Newsletter module, when I user subscribe to the newsletter.

E-mails arrive like this:
---------------------
Hello, [newsletter: subscriber_email],

[site: nome]
[site: url]

---------------------
How can I solve this problem?

Thank you
Francesca

Comments

camorim’s picture

Hi Francesca

There is a problem with the "test newsletters". If this is your case, here you can confirm what I'm saying.
My problem is also on the newsletter that are really sent.

So I want to reinforce your issue and put my report of detailed tests to help solve this problem.

Step 1.
Configuration of modules: newsletter, token, entity api, entity token, token filter (optional)

Step 2
Edition of a new format text "Newsletter" with pathologic filter, token filter for replacement, media convert images, etc
Configuration of Wysiwyg profile related to text format.

Step 3.
Creation of a new mail template that uses some tokens, images embed by media module and a custom field, a sort of image for header of newsletter template

Step 4.
Results:

  • All newsletters sent by test email don't replace tokens.
  • Newsletters sent normally replace only [newsletter:subscriber_email] and [newsletter:subscriber_firstname]
  • All images embed by media are rendered perflectly.
  • The custom field added to the structure (manage fields) is not rendered

Step 5.
Tried to create a special template with a batery of tokens to discover which are really replaced.
Result: no result. The tokens rendered initially don't appear in this attempt.

Step 6.
Tried to use token insert button to insert tokens by Wysiwyg
Tried to use full text format
Tried to change the order of filters on text format
Tried to put manually the tokens on body section of newsletter

It seems that tokens don't want to show up. But it's curious because I'm unable to discover a pattern or an explanation.

Help is welcome.
Thank you.
cláudia

-------------
My installation:
Newsletter 7.x-1.0-beta8+21-dev
Entity API 7.x-1.0-rc3
Token 7.x-1.1
Token Filter 7.x-1.1+1-dev
Token insert UI 7.x-2.0
Drupal 7.14

SolasArd’s picture

Subscribing, I have the same problem

SolasArd’s picture

OK, I did a fresh install, using the following versions:

  • Drupal 7.19
  • Entity reference 7.x-1.0
  • Entity API 7.x-1.0
  • Newsletter 7.x-1.0-beta9

And token replacement is working fine. Previously I was trying various versions of Entity API as it has some issues with other modules and probably at some point installation/upgrade/downgrade messed up something.

ssoulless’s picture

Issue summary: View changes

Hello in my case, tokens are replaced but they are not replaced correctly. for example the token [newsletter: subscriber_email] is replaced with anonymous for all my users so the email is like

Hello Anonymous,

and all the other tokens...