Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length

 
Advanced search

2151 Posts in 536 Topics- by 919 Members - Latest Member: ks-admin

eTicket CommunitySupportInstallation Help & Software Support (Moderators: jason, Hummdis)Topic: help!!.... html tags in email
Pages: [1]   Go Down
Print
Author Topic: help!!.... html tags in email  (Read 1377 times)
0 Members and 1 Guest are viewing this topic.
leo
New Member
*

Karma: +1/-0
Offline Offline

Posts: 4


« on: November 14, 2008, 12:13:58 PM »

Hi
In directory ../themes/eticket/, when I changed email-example.html to email.html to enable html email, I see the html tags not stripped out in the email body.
I see an older post asking about the same problem:
http://www.eticketsupport.com/installation_help_software_support/went_off_topic_html_in_email-t171.0.html

This post was reviewed 2685 times, but I don't see any final solution posted.

Does anyone know how to fix it??
==============
I am using
1: eticket latest version 1.7.3
2: Fedora 8
3: MySQL 5.0.45
==============
I am attaching a screen shot of the problem I encountered
Logged
Hummdis
Moderator
Sr. Member
*****

Karma: +12/-0
Offline Offline

Posts: 431



WWW
« Reply #1 on: November 17, 2008, 06:40:40 AM »

Just to make sure, how are you enabling HTML email?

I'm asking because it's not in the eTicket Admin Preferences in 1.7.3.
Logged

leo
New Member
*

Karma: +1/-0
Offline Offline

Posts: 4


« Reply #2 on: November 17, 2008, 07:38:14 AM »

Like I said, change ../themes/eticket/email-example.html to email.html
Logged
leo
New Member
*

Karma: +1/-0
Offline Offline

Posts: 4


« Reply #3 on: November 17, 2008, 08:03:21 AM »

my troubleshooter.php show following system configurations:
==========================
    * PHP version: 5.2.6 (Should be PHP 5.0.0 or above)
    * PHP Safe Mode is off
    * eTicket version: 1.7.3
    * Webserver: Apache/2.2.8 (Fedora)
    * Database: MySQL 5.0.51a-log (Should be MySQL 4.1 or above)
    * GD is not installed, CAPTCHA will not work.
    * Multibyte String is installed
    * iconv version: 2.8.90
    * IMAP is not installed eTicket will not work correctly if you use automail.php.
    * Socket support enabled.
    * User Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.Cool Gecko/20071030 Fedora/2.0.0.8-2.fc8 Firefox/2.0.0.8
    * Character set: UTF-8
    * Link: http://localhost/eticket73/troubleshooter.php
======================
I believe GD and IMAP should not affect the problem I encountered, right?
Logged
avalera
New Member
*

Karma: +0/-0
Offline Offline

Posts: 4


« Reply #4 on: November 17, 2008, 09:08:15 AM »

Just to make sure, how are you enabling HTML email?

I'm asking because it's not in the eTicket Admin Preferences in 1.7.3.

How can I enable HTML email?

Regards
Logged
Hummdis
Moderator
Sr. Member
*****

Karma: +12/-0
Offline Offline

Posts: 431



WWW
« Reply #5 on: November 17, 2008, 11:58:51 AM »

Mmmm....interesting.  Changing that for me does nothing.  All of the emails are still plain text.

Since the other post does not show the fix and I doubt you're going to get anywhere with this one, file a bug report to make sure that this does get fixed for the upcoming 2.0.
Logged

leo
New Member
*

Karma: +1/-0
Offline Offline

Posts: 4


« Reply #6 on: November 17, 2008, 12:08:56 PM »

ok!
I found the solution by digging into the code!
To enable html email:
1)change ../themes/eticket/email-example.html to email.html

2)log into eticket admin page, "mail responses" tab, you need to define html style yourself. i.e.
<img src=localhost/images/logo.jpg>
 <h1>define you html format</h1>

3) edit ../inc/class.ticket.php file.
In this file, there is a function GetHTML($message, $vars, blah blah..)
comment out this line:
$message=text2html($message);

Then you are done!
now enjoy fancy html email design!
Logged
Hummdis
Moderator
Sr. Member
*****

Karma: +12/-0
Offline Offline

Posts: 431



WWW
« Reply #7 on: November 24, 2008, 05:24:00 AM »

Great investigative work leo!!

Hopefully this helps the developers and solves the problem for others!
Logged

eTicket Community
   

 Logged
Pages: [1]   Go Up
Print
eTicket CommunitySupportInstallation Help & Software Support (Moderators: jason, Hummdis)Topic: help!!.... html tags in email
Jump to: