CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Email tokens not working
Pages: [1]

Author Topic: Email tokens not working  (Read 2492 times)

Deaf Old Gorilla

  • Guest
Email tokens not working
October 21, 2007, 10:38:37 am
Using Civicrm 1.9 on Drupal 5.2, it seems that email tokens (e.g. {contact.first_name} ) are not working on Emails sent from the core actions after I search for contacts.

The emails are sent correctly, but the tokens are not replaced with the first name (or whatever). Is this a bug, or is there anything I can do about this before the system goes live?

Tim

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Email tokens not working
October 21, 2007, 11:37:54 am

I checked the code and i think it is a missing feature. I dont think we ever did "contact" replacement in the core action task. I think extending the email code to do so is relatively easy and would be a great community contribution for 2.0 :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Email tokens not working
November 06, 2007, 12:05:47 pm
The "missing token functionality" affects the core "Send Email to Contact(s)" functionality ONLY. Contact tokens ARE implemented and tested for CiviMail messages.

I've entered an issue for 2.0 to get tokens working in the core "Send Email" feature:
http://issues.civicrm.org/jira/browse/CRM-2394
Protect your investment in CiviCRM by  becoming a Member!

campsoupster

  • Guest
Re: Email tokens not working
November 19, 2007, 06:09:49 pm
Are you two sure that this feature wasn't implemented in 1.8?  I've got emails in my civicrm activity log that seem to suggest that this feature was working in 1.8 in September, and I believe that one of my clients was actively using tokens with the send mail tool - in which case, my 1.9 upgrade toasted some key functionality for them.

If that is the case, is there anyway that you could bring this back as a 1.9 bug fix - rather than waiting to 2.0?  I'd hate to have to do a full version upgrade with db schema changes to get this working again.  (but that's me just being selfish - i know that you have a ton on your plates! ;) )

Thanks!
-sean
« Last Edit: November 19, 2007, 06:15:11 pm by campsoupster »

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Email tokens not working
November 29, 2007, 02:21:07 pm
I just ran into this issue too -- was using it fine in 1.8, but went to send an email out and was scratching my head as to why the tokens weren't working.

I echo the request in the last post -- any chance we can get a fix for this in 1.9, since it's a broken feature from a prior version? I took a look at the issue tracker and it appears to be fixed. But the files affected have other changes that break a 1.9 installation. We would need to isolate the changes specific to this issue.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Email tokens not working
November 29, 2007, 10:21:00 pm

unfortunately not. the changes are a bit more than we'd like to make a stable release

it helps us a lot if folks do download the alpha/beta releases and test their various use cases. The past few releases we have been quite methodical about testing older issues and this has helped quite a bit

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Email tokens not working
February 01, 2008, 01:57:01 pm
Just want to bring this issue up again --
It appears the broken token issue also impacts the membership renewal script running off a cron job. I just got some users reporting that the token replacement didn't work.

Any chance the core team can take another look at it for repairing 1.9?
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Email tokens not working
February 01, 2008, 06:54:33 pm

backporting functionality is a bit too much work for us. Yes, its a bit sucky, but it also could potentially lead to a destructive development cycle.

It does help us a lot if the community steps up and heeds our multiple calls and email with regard to testing their favorite feature on 2.0. Once we hit final, only critical bugs are fixed (and the definition of critical is very subjective!)

sorry about that, but we do need to draw a line somewhere ... Brian, we do appreciate and acknowledge all what you do and are doing for the project.

lobo
 
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Email tokens not working
February 01, 2008, 09:14:56 pm
I know from a development cycle standpoint, it's difficult to go back and fix things. And you know that I'm sympathetic to the cause. So we'll make due until 2.0.

Unfortunately, some of these functions are difficult to really kick the tires in a development environment.
-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Email tokens not working

This forum was archived on 2017-11-26.