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 CiviMail (Moderator: Piotr Szotkowski) »
  • Tokens in Send Email and Scheduled
Pages: [1]

Author Topic: Tokens in Send Email and Scheduled  (Read 487 times)

Matt-WF

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.x.x
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 3
Tokens in Send Email and Scheduled
September 10, 2013, 04:27:17 am
Hey folks,

Apologies if my search-fu is terrible and there's already another thread on this issue.

Civi: 4.2.8

The situation is that I have a template with the following tokens: action.foward, action.optOutUrl, and domain.address. The first two tokens are wrapped around images. The last token is just displayed as normal. 
The issue that I've found is that if I go to a contact and send them an email (Actions > Send an email) and use the template, the tokens are not processed. This means that the images do not have a link on them, and the domain address token is just displayed as {domain.address} instead of populating the address information.
However, if I schedule a mailing and use the template, the tokens function as I expect them to.

Does anyone know if this is a bug or a fixable issue?

Thanks in advance.

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: Tokens in Send Email and Scheduled
September 10, 2013, 07:29:01 am

Those tokens are replaced only during a CiviMail and not a regular send an email action

fixing it to replace the latter two tokens (optOut and address) is fairly easy with just a bit of coding. the action.forward would require a moderate amount of coding

if you need help getting going on this, ping us on irc

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

Matt-WF

  • I’m new here
  • *
  • Posts: 4
  • Karma: 0
  • CiviCRM version: 4.x.x
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 3
Re: Tokens in Send Email and Scheduled
September 11, 2013, 01:39:35 am
Thanks for your reply on this, Lobo.

I realised, shortly after I'd started this topic, that the way that I was thinking about using these tokens wasn't quite right. By that I mean that I've realised that they are tokens that are tailored towards messages to contacts that are subscribed to a group (e.g. newsletter mailing list), so when sending an email you wouldn't really need to include the mailing tokens.

All good!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Tokens in Send Email and Scheduled

This forum was archived on 2017-11-26.