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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • file attachments for email templates?
Pages: [1]

Author Topic: file attachments for email templates?  (Read 745 times)

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
file attachments for email templates?
April 10, 2013, 10:06:14 pm
To support attaching files to emails generated from templates (eg brochures for recruitment emails), I'm considering adding a new type of custom token. Because the tokens would not be processed as inline string replacements, some additional code would be required. I'll have to review the code, but this might require putting in a new hook to support preprocessing of these tokens, and also ensure that special header info for emails is processed properly from that point all the way to the send.

What do people think of the idea of using {file.this is a filename.jpg}as a token where the text 'this is a filename.jpg' is used to specify a file under the upload directory?
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: file attachments for email templates?
April 10, 2013, 11:16:02 pm
Sounds good to me Joe!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

totten

  • Administrator
  • Ask me questions
  • *****
  • Posts: 695
  • Karma: 64
Re: file attachments for email templates?
April 23, 2013, 03:43:54 pm
I'm not sure I understand how a token would solve the problem. Could you describe the usage a little more?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • file attachments for email templates?

This forum was archived on 2017-11-26.