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 CiviEvent (Moderator: Yashodha Chaku) »
  • Event Online registration email sending Message as HTML?
Pages: [1]

Author Topic: Event Online registration email sending Message as HTML?  (Read 1199 times)

sawjer

  • Guest
Event Online registration email sending Message as HTML?
December 02, 2008, 02:51:10 pm
At Present the confirmation message is sent as simple text which is not very user friendly.

Is there a reason for not sending it as html with the ability to show  the same formatting as in the browser?
How to change it to send html text?

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: Event Online registration email sending Message as HTML?
December 02, 2008, 05:44:43 pm
Quote from: sawjer on December 02, 2008, 02:51:10 pm
At Present the confirmation message is sent as simple text which is not very user friendly.

You can edit and modify the message template as needed. A lot of the text comes from the DB and is collected on a per event basis. I'm not sure why you state "simple text is not very user friendly". I do agree that html text is more attractive to read (assuming the mail client downloads your images etc)

Quote from: sawjer on December 02, 2008, 02:51:10 pm
Is there a reason for not sending it as html with the ability to show  the same formatting as in the browser?
How to change it to send html text?

There are a few things you'll need to do to send a MIME mail.

1. add fields to the db to hold the html versions of the receipt text / pay later receipt text / (and other fields if any)

2. add an html template message: CRM/Event/Form/Registration/ReceiptMessage.tpl, CRM/Event/Form/Registration/ReceiptSubject.tpl

3. Change the email sending code to compose a MIME message using both the text and html versions from the db

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 »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Event Online registration email sending Message as HTML?

This forum was archived on 2017-11-26.