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) »
  • Can PHP & API be used in email footer?
Pages: [1]

Author Topic: Can PHP & API be used in email footer?  (Read 753 times)

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Can PHP & API be used in email footer?
December 05, 2011, 07:55:50 pm
We'd like to put some information about the email recipient's CiviCRM groups in the footer (which ones s/he has been added to, which ones not). Suggested approach?

As a second choice, this could go in the template itself.
« Last Edit: December 05, 2011, 10:23:39 pm by m.e. »

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: Can PHP & API be used in email footer?
December 06, 2011, 03:54:28 am
Quote
We'd like to put some information about the email recipient's CiviCRM groups in the footer (which ones s/he has been added to, which ones not). Suggested approach?

If you are using CiviMail, you can configure footer for the mailing.
Check: http://drupal.demo.civicrm.org/civicrm/admin/component?reset=1

Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Can PHP & API be used in email footer?
December 06, 2011, 04:24:31 am
And there is an option to put smarty codes in the templates, so could work. Not sure about the footer, you'll have to try.

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

m.e.

  • I post frequently
  • ***
  • Posts: 157
  • Karma: 5
  • CiviCRM version: 4.0.9
  • CMS version: Drupal 7.9
Re: Can PHP & API be used in email footer?
December 06, 2011, 11:51:59 am
I haven't had any luck using PHP in headers, footers, or templates.

Tokens do seem to work in all those places, but without a way to insert conditional logic about the values of the tokens, we can't seem to do what we'd like from the CiviMail GUI.

xavier, I may test the Smarty method next time around ... it appears to take a little doing. :)

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: Can PHP & API be used in email footer?
December 07, 2011, 03:53:29 am
Quote
I haven't had any luck using PHP in headers, footers, or templates.

PHP code won't work on headers and footers.


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) »
  • Can PHP & API be used in email footer?

This forum was archived on 2017-11-26.