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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Plain text email word-wrapping
Pages: [1]

Author Topic: Plain text email word-wrapping  (Read 796 times)

leopitt

  • Guest
Plain text email word-wrapping
July 28, 2010, 08:47:37 am
My question is specifically related to CiviMail, but is probably also relevant to general email sent via CiviCRM.

I've created a CiviMail template, with HTML version and a plain-text alternative.

I would like the plain-text version to have a line feed and carriage returns automatically inserted every 70 characters, so that the resulting plain text email will appear in a more legible column of text when viewed in the average email client.

You will probably be familiar with the kind of thing I mean from many of the emails you receive ordinarily.

Is it possible to configure CiviMail to do this automatically?

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: Plain text email word-wrapping
July 28, 2010, 07:20:36 pm

you can do this by implementing the mail alter hook: hook_civicrm_alterMailParams

http://wiki.civicrm.org/confluence/display/CRMDOC32/CiviCRM+hook+specification#CiviCRMhookspecification-hookcivicrmalterMailParams

if you do so please publish your results so others can benefit. Please ensure u do the break "around" 70 character (i.e. at the nearest word break) rather than exactly at 70 characters :)

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Plain text email word-wrapping

This forum was archived on 2017-11-26.