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) »
  • Token in email templates
Pages: [1]

Author Topic: Token in email templates  (Read 1045 times)

behrang

  • I’m new here
  • *
  • Posts: 15
  • Karma: 0
  • CiviCRM version: 4.05
  • CMS version: drupal 7
  • MySQL version: 5
  • PHP version: 5
Token in email templates
November 18, 2011, 03:43:08 am
Hi
i've been searching around but successless til here.
I am looking for token for email and name of the logged in user for signature of mails been sent.
are the such token in system available or how can i define my own?
greets

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Token in email templates
November 18, 2011, 04:26:21 am
Quote
are the such token in system available or how can i define my own?

Yes there are some default contacts available. You get the option to "Insert tokens" on Send Email and for new mailing compose screen.
For eg. check http://drupal.demo.civicrm.org/civicrm/activity/email/add?atype=3&action=add&reset=1&context=standalone
When you click on Insert Token, you will get a dialog to add tokens

In order to add custom tokens you will have to use token and token values hook.
http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmtokens
http://wiki.civicrm.org/confluence/display/CRMDOC40/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmtokenValues

For sample implementation check http://svn.civicrm.org/civicrm/branches/v3.4/drupal/civitest.module.sample

Hth
Kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Token in email templates

This forum was archived on 2017-11-26.