Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
camorim CreditAttribution: camorim commentedHi 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:
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
Comment #2
SolasArd CreditAttribution: SolasArd commentedSubscribing, I have the same problem
Comment #3
SolasArd CreditAttribution: SolasArd commentedOK, I did a fresh install, using the following versions:
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.
Comment #4
ssoulless CreditAttribution: ssoulless commentedHello 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...