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 CiviContribute (Moderator: Donald Lobo) »
  • Missing CRLF in email receipts
Pages: [1]

Author Topic: Missing CRLF in email receipts  (Read 1527 times)

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Missing CRLF in email receipts
October 08, 2007, 10:42:51 am
I am using CiviCRM 1.8.11536 although I have seen this in earlier 1.8 versions.

When I generate an email receipt, the separation lines (============) don't always print on the next line of the email.  For example, here is the email generated by a receipt from a payment using PayPal Standard:

Please print this receipt for your records. ==============================================
Contribution Information ===========================================================
Amount: $ 125.00
Date: October 8th, 2007  9:51 AM
Transaction #: xxxxxxxxxxxx

(I removed some of the === from the first line so you could see that it did not wrap.  I made no other changes.)

Note that the lines of ======== don't print on the next line, as I believe they should.

I have seen the same thing on receipt using PayPal Pro, so I don't believe it has to do with the payment processor.

How should this look?  Shouldn't the separation lines of ====== be on the next line rather than on the same line with the text?  How do I get these separation lines to print on the next lines?
« Last Edit: October 12, 2007, 10:40:17 am by hwdornbush »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Missing CRLF in email receipts
October 08, 2007, 03:49:05 pm
Those separation lines should print on the next line - and they do when I run the code on my local MacOSX box - as well as when I do a test-drive on our demo server (which i think is running FreeBSD) using the same codebase. You can try this at:
http://demo.civicrm.org/drupal/civicrm/contribute/transact?reset=1&id=1&action=preview

From the receipt I received:
Code: [Select]
Please print this receipt for your records.
===========================================================
Contribution Information
===========================================================
Amount: $ 5.00
[code]

So, not sure what would cause the difference in behavior on your site. What OS and PHP version are you running?

[/code]
Protect your investment in CiviCRM by  becoming a Member!

hwdornbush

  • I post occasionally
  • **
  • Posts: 57
  • Karma: 0
Re: Missing CRLF in email receipts
October 12, 2007, 10:39:16 am
I am running on a site hosted by Dreamhost, and this is what it reports:

Php version   5.2.3

Apache/2.0.54 (Unix) PHP/4.4.7 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2

GNU/Linux

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Missing CRLF in email receipts
October 12, 2007, 10:43:37 am
I don't have any idea what would cause the diffence in CRLF behaviors then :-( Hopefully someone else does.... Otherwise, I guess you could try modifying the receipt template and adding an extra CRLF in those spots.

The file is: templates/CRM/Contribute/Form/Contribution/ReceiptMessage.tpl
Protect your investment in CiviCRM by  becoming a Member!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Missing CRLF in email receipts

This forum was archived on 2017-11-26.