Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-4868

CiviCRM Html e-mail function doesn't work as it should

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.2.7
    • Fix Version/s: 3.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      Change Utils/Mail.php to send out html messages correctly if the $html_message variable is passed in (currently it almost works...)

      Instead of :

      $headers['Content-Type'] = 'text/plain; charset=utf-8';

      Should Be:

      if ($html_message)

      { $headers['Content-Type'] = 'multipart/mixed; charset=utf-8'; }

      else

      { $headers['Content-Type'] = 'text/plain; charset=utf-8'; }

      Per forum http://forum.civicrm.org/index.php/topic,9170.0.html it would be good if this could be extended a bit more - just so much that if people put a htmlReceiptMessage.tpl file in place then it would pick it up. This would give people an option in the meantime & hopefully be compatible with some future more significant work in this area.

        Attachments

          Activity

            People

            • Assignee:
              shot Piotr Szotkowski
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: