How to enable HTML trmplates in RT

View: New views
8 Messages — Rating Filter:   Alert me  

How to enable HTML trmplates in RT

by Praveen C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,

I am using RT 3.8 installed in Debian Lenny. I changed my default templates to html. but I am getting mails in plain text. When i receive mails, header shows 'Content-Type: text/plain; charset="utf-8"'.After a long search I came to know that due to security RT enabled only text/plain. how can i enable html email in RT.
Thanks for any help in advance

-Praveen-


http://windows.microsoft.com/shop Find the right PC for you.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: How to enable HTML trmplates in RT

by Aaron Guise :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

All I did was setup the templates as shown in the example below;

Subject: Resolved: {$Ticket->Subject}
Content-Type: text/html
Content:

<table border="0" cellpadding="0" width="644">
 <tr>
 <td colspan=2 height="53"><p><font face="Verdana" size="2">You logged a job (SR#) with the Sitel IT Service Desk which we believe we have now resolved, please take the time to&nbsp;complete a short survey in relation to that job.<br />
 </font><td height="53">
 <tr>
 <td><font face="Verdana" size="2"><b>Sitel users please click below</b><br />
 <a target="_blank" href="http://i3/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif"
alt="Begin Survey" width="150" height="53"></a>
 <br></font></td>
 <td><font face="Verdana" size="2"><b>Genesis users please click below</b><br />
 <a target="_blank" href="http://10.67.1.138:8004/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif" alt="Begin Survey"width="150" height="53"></a>
 <br>
 </font>
 </td></tr>
 <tr>
 <td colspan="2"><font face="Verdana" size="2">If the job has not been
 resolved or you have any further questions or concerns, please reply to this
 message or call us on extension 7804 (+64 7 838 7804)<br>
 &nbsp;</font></td>
 </tr>
 <tr><font face="Verdana" size="6"><br>
 <br>
 <b>Note: Any replies to this email will reopen the job</b></font> </p>
 <font face="Verdana" size="2"></td>
 </font>
 </tr>
 <tr>
 <td><p><font face="Verdana" size="2"><b><br>
 S<font color="red">i</font>tel NZ Information Technology</b><br>
 Level 3, ASB Building<br>
 500 Victoria Street<br>
 Hamilton, New Zealand<br>
 +64 7 838 7804</font></p></td>
 </tr>
 </table>

Then clearly adjusted the scrips to fire off the amended template.  This one was for OnResolve.

--
Regards

Aaron

On Mon, Nov 9, 2009 at 6:11 PM, Praveen Velu <praveen.velu@...> wrote:
Hi,

I am using RT 3.8 installed in Debian Lenny. I changed my default templates to html. but I am getting mails in plain text. When i receive mails, header shows 'Content-Type: text/plain; charset="utf-8"'.After a long search I came to know that due to security RT enabled only text/plain. how can i enable html email in RT.
Thanks for any help in advance

-Praveen-


http://windows.microsoft.com/shop Find the right PC for you.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
Regards,

Aaron


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: How to enable HTML trmplates in RT

by Praveen C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Dear Aaron,

Thanks for your quick help. I added same template for testing. Still I am getting mails in text/plain format. Is there any settings I have to do for enable html in request tracker 3.8.

If I reply to a mail from rt web interface by adding any hyper-links to body. I am not getting any hyper-links at receiving end.

-Praveen-
 
All I did was setup the templates as shown in the example below;

Subject: Resolved: {$Ticket->Subject}
Content-Type: text/html
Content:

<table border="0" cellpadding="0" width="644">
 <tr>
 <td colspan=2 height="53"><p><font face="Verdana" size="2">You logged a job (SR#) with the Sitel IT Service Desk which we believe we have now resolved, please take the time to&nbsp;complete a short survey in relation to that job.<br />
 </font><td height="53">
 <tr>
 <td><font face="Verdana" size="2"><b>Sitel users please click below</b><br />
 <a target="_blank" href="http://i3/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif"
alt="Begin Survey" width="150" height="53"></a>
 <br></font></td>
 <td><font face="Verdana" size="2"><b>Genesis users please click below</b><br />
 <a target="_blank" href="http://10.67.1.138:8004/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif" alt="Begin Survey"width="150" height="53"></a>
 <br>
 </font>
 </td></tr>
 <tr>
 <td colspan="2"><font face="Verdana" size="2">If the job has not been
 resolved or you have any further questions or concerns, please reply to this
 message or call us on extension 7804 (+64 7 838 7804)<br>
 &nbsp;</font></td>
 </tr>
 <tr><font face="Verdana" size="6"><br>
 <br>
 <b>Note: Any replies to this email will reopen the job</b></font> </p>
 <font face="Verdana" size="2"></td>
 </font>
 </tr>
 <tr>
 <td><p><font face="Verdana" size="2"><b><br>
 S<font color="red">i</font>tel NZ Information Technology</b><br>
 Level 3, ASB Building<br>
 500 Victoria Street<br>
 Hamilton, New Zealand<br>
 +64 7 838 7804</font></p></td>
 </tr>
 </table>

Then clearly adjusted the scrips to fire off the amended template.  This one was for OnResolve.

--
Regards

Aaron

On Mon, Nov 9, 2009 at 6:11 PM, Praveen Velu <praveen.velu@...> wrote:
Hi,

I am using RT 3.8 installed in Debian Lenny. I changed my default templates to html. but I am getting mails in plain text. When i receive mails, header shows 'Content-Type: text/plain; charset="utf-8"'.After a long search I came to know that due to security RT enabled only text/plain. how can i enable html email in RT.
Thanks for any help in advance

-Praveen-


http://windows.microsoft.com/shop Find the right PC for you.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
Regards,

Aaron



New Windows 7: Find the right PC for you. Learn more.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Strange Error in RT on Ownerchange

by Brumm, Torsten / Kuehne + Nagel / Ham MI-ID :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi RT Users,
some of my users report the error below to me in some tickets (all created yesterday 3pm german time) if they try to take the ticket. Same occurs if they try to change the owner via Basics.
 
We are sti´ll under RT 3.6.5 on Centos. No changes to RT during the last weeks so far i can remember ;-)
 
Any idea what could happen to this tickets?!
 
Thanks
Torsten 
 
 
error:  Can't call method "Delete" on an undefined value at /opt/rt3/lib/RT/Ticket_Overlay.pm line 3068.
context: 
... 
3064: 
3065:  # Delete the owner in the owner group, then add a new one
3066:  # TODO: is this safe? it's not how we really want the API to work
3067:  # for most things, but it's fast.
3068:  my ( $del_id, $del_msg ) = $self->OwnerGroup->MembersObj->First->Delete();
3069:  unless ($del_id) {
3070:  $RT::Handle->Rollback();
3071:  return ( 0, $self->loc("Could not change owner. ") . $del_msg );
3072:  }
... 
code stack:  /opt/rt3/lib/RT/Ticket_Overlay.pm:3068
/opt/rt3/local/lib/RT/Interface/Web.pm:1264
/opt/rt3/share/html/Ticket/Modify.html:72
/opt/rt3/share/html/autohandler:291
Can't call method "Delete" on an undefined value at /opt/rt3/lib/RT/Ticket_Overlay.pm line 3068.


Trace begun at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('Can\'t call method "Delete" on an undefined value at /opt/rt3/lib/RT/Ticket_Overlay.pm line 3068.^J') called at /opt/rt3/lib/RT/Ticket_Overlay.pm line 3068
RT::Ticket::SetOwner('RT::Ticket=HASH(0x9cc95f0)', 3372372, 'Give') called at /opt/rt3/local/lib/RT/Interface/Web.pm line 1264
HTML::Mason::Commands::ProcessTicketBasics('TicketObj', 'RT::Ticket=HASH(0x9cc95f0)', 'ARGSRef', 'HASH(0x5e46f30)') called at /opt/rt3/share/html/Ticket/Modify.html line 72
HTML::Mason::Commands::__ANON__('TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x471c360)', 'TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1284
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /opt/rt3/share/html/autohandler line 291
HTML::Mason::Commands::__ANON__('TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x3dd2940)', 'TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1279
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 1274
HTML::Mason::Request::comp(undef, undef, undef, 'TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 473
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 473
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Request.pm line 425
HTML::Mason::Request::exec('HTML::Mason::Request::CGI=HASH(0xccd5000)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 190
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 190
HTML::Mason::Request::CGI::exec('HTML::Mason::Request::CGI=HASH(0xccd5000)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/Interp.pm line 342
HTML::Mason::Interp::exec(undef, undef, 'TimeWorked', 0, 'TimeEstimated-TimeUnits', 'minutes', 'Owner', 3372372, 'Object-RT::Ticket-2640283-CustomField-1344-Values-Magic', 1, 'FinalPriority', 0, 'TimeLeft', 0, 'TimeWorked-TimeUnits', 'minutes', 'Status', '', 'id', 2640283, 'TimeLeft-TimeUnits', 'minutes', 'TimeEstimated', 0, 'Subject', 'edi orders not received yet', 'Priority', 0, 'Queue', 495, 'Object-RT::Ticket-2640283-CustomField-1344-Values', '') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 121
eval {...} at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 121
HTML::Mason::CGIHandler::_handler('HTML::Mason::CGIHandler=HASH(0x380d2b0)', 'HASH(0xbac7070)') called at /usr/lib/perl5/site_perl/5.8.8/HTML/Mason/CGIHandler.pm line 73
HTML::Mason::CGIHandler::handle_cgi_object('HTML::Mason::CGIHandler=HASH(0x380d2b0)', 'CGI::Fast=HASH(0x6cb07a0)') called at /opt/rt3/bin/mason_handler.fcgi line 78
eval {...} at /opt/rt3/bin/mason_handler.fcgi line 78

Kühne + Nagel (AG & Co.) KG, Geschäftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persönlich haftende Gesellschaft: Kühne & Nagel A.G., Sitz: Contern/Luxemburg, Geschäftsführender Verwaltungsrat: Klaus-Michael Kühne



_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: Strange Error in RT on Ownerchange

by Jerrad Pierce-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Any idea what could happen to this tickets?!
Something in this chain is returning undef;

$self->OwnerGroup->MembersObj

Presumably there are no owners to begin with.
--
Cambridge Energy Alliance: Save money. Save the planet.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: Strange Error in RT on Ownerchange

by Brumm, Torsten / Kuehne + Nagel / Ham MI-ID :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jerrad,

thanks for the hint, i look into all the tickets with this error (i'm happy, only 6 Tickets) and none of them have a owner, also not owned by NOBODY. After searching my log, i found someone from our operating has restartet one of our webservers at the time this tickets where created.

OK, i cloned them to a new, now all is fine.

Thanks

Torsten


Kuehne + Nagel (AG & Co.) KG, Geschaeftsleitung: Hans-Georg Brinkmann (Vors.), Dirk Blesius (Stellv.), Reiner Heiken (Stellv.), Bruno Mang, Alfred Manke, Christian Marnetté (Stellv.), Mark Reinhardt (Stellv.), Jens Wollesen, Rainer Wunn, Sitz: Bremen, Registergericht: Bremen, HRA 21928, USt-IdNr.: DE 812773878, Persoenlich haftende Gesellschaft: Kuehne & Nagel A.G., Sitz: Contern/Luxemburg Geschaeftsfuehrender Verwaltungsrat: Klaus-Michael Kuehne



-----Urspruengliche Nachricht-----
Von: Jerrad Pierce [mailto:jpierce@...]
Gesendet: Dienstag, 10. November 2009 16:54
An: Brumm, Torsten / Kuehne + Nagel / Ham MI-ID
Cc: rt-users@...
Betreff: Re: [rt-users] Strange Error in RT on Ownerchange

> Any idea what could happen to this tickets?!
Something in this chain is returning undef;

$self->OwnerGroup->MembersObj

Presumably there are no owners to begin with.
--
Cambridge Energy Alliance: Save money. Save the planet.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: How to enable HTML trmplates in RT

by Aaron Guise :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This may have some bearing on things,  unsure but worth a try.

In RT_SiteConfig.pm make sure to have, if you don't then add these in.

Set($TrustHTMLAttachments, 1);
Set($PreferRichText, 1);

Another thing,  not the empty line under Content: If you don't have this blank line the template will not work as HTML.

--
Regards

Aaron


On Tue, Nov 10, 2009 at 6:45 PM, Praveen Velu <praveen.velu@...> wrote:
Dear Aaron,

Thanks for your quick help. I added same template for testing. Still I am getting mails in text/plain format. Is there any settings I have to do for enable html in request tracker 3.8.

If I reply to a mail from rt web interface by adding any hyper-links to body. I am not getting any hyper-links at receiving end.

-Praveen-

 
All I did was setup the templates as shown in the example below;

Subject: Resolved: {$Ticket->Subject}
Content-Type: text/html
Content:

<table border="0" cellpadding="0" width="644">
 <tr>
 <td colspan=2 height="53"><p><font face="Verdana" size="2">You logged a job (SR#) with the Sitel IT Service Desk which we believe we have now resolved, please take the time to&nbsp;complete a short survey in relation to that job.<br />
 </font><td height="53">
 <tr>
 <td><font face="Verdana" size="2"><b>Sitel users please click below</b><br />
 <a target="_blank" href="http://i3/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif"
alt="Begin Survey" width="150" height="53"></a>
 <br></font></td>
 <td><font face="Verdana" size="2"><b>Genesis users please click below</b><br />
 <a target="_blank" href="http://10.67.1.138:8004/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif" alt="Begin Survey"width="150" height="53"></a>
 <br>
 </font>
 </td></tr>
 <tr>
 <td colspan="2"><font face="Verdana" size="2">If the job has not been
 resolved or you have any further questions or concerns, please reply to this
 message or call us on extension 7804 (+64 7 838 7804)<br>
 &nbsp;</font></td>
 </tr>
 <tr><font face="Verdana" size="6"><br>
 <br>
 <b>Note: Any replies to this email will reopen the job</b></font> </p>
 <font face="Verdana" size="2"></td>
 </font>
 </tr>
 <tr>
 <td><p><font face="Verdana" size="2"><b><br>
 S<font color="red">i</font>tel NZ Information Technology</b><br>
 Level 3, ASB Building<br>
 500 Victoria Street<br>
 Hamilton, New Zealand<br>
 +64 7 838 7804</font></p></td>
 </tr>
 </table>

Then clearly adjusted the scrips to fire off the amended template.  This one was for OnResolve.

--
Regards

Aaron

On Mon, Nov 9, 2009 at 6:11 PM, Praveen Velu <praveen.velu@...> wrote:
Hi,

I am using RT 3.8 installed in Debian Lenny. I changed my default templates to html. but I am getting mails in plain text. When i receive mails, header shows 'Content-Type: text/plain; charset="utf-8"'.After a long search I came to know that due to security RT enabled only text/plain. how can i enable html email in RT.
Thanks for any help in advance

-Praveen-


http://windows.microsoft.com/shop Find the right PC for you.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
Regards,

Aaron



New Windows 7: Find the right PC for you. Learn more.



--
Regards,

Aaron


_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Re: How to enable HTML trmplates in RT

by Praveen C :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,

I have added these settings in RT_SiteConfig.pm. Still I am getting mails in plain/text format. I have installed Request tracker 3.8 in Debian Lenny

-Praveen-

This may have some bearing on things,  unsure but worth a try.

In RT_SiteConfig.pm make sure to have, if you don't then add these in.

Set($TrustHTMLAttachments, 1);
Set($PreferRichText, 1);

Another thing,  not the empty line under Content: If you don't have this blank line the template will not work as HTML.

--
Regards

Aaron


On Tue, Nov 10, 2009 at 6:45 PM, Praveen Velu <praveen.velu@...> wrote:
Dear Aaron,

Thanks for your quick help. I added same template for testing. Still I am getting mails in text/plain format. Is there any settings I have to do for enable html in request tracker 3.8.

If I reply to a mail from rt web interface by adding any hyper-links to body. I am not getting any hyper-links at receiving end.

-Praveen-

 

All I did was setup the templates as shown in the example below;

Subject: Resolved: {$Ticket->Subject}
Content-Type: text/html
Content:

<table border="0" cellpadding="0" width="644">
 <tr>
 <td colspan=2 height="53"><p><font face="Verdana" size="2">You logged a job (SR#) with the Sitel IT Service Desk which we believe we have now resolved, please take the time to&nbsp;complete a short survey in relation to that job.<br />
 </font><td height="53">
 <tr>
 <td><font face="Verdana" size="2"><b>Sitel users please click below</b><br />
 <a target="_blank" href="http://i3/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif"
alt="Begin Survey" width="150" height="53"></a>
 <br></font></td>
 <td><font face="Verdana" size="2"><b>Genesis users please click below</b><br />
 <a target="_blank" href="http://10.67.1.138:8004/pages/surveys/it_servicedesk_satisfaction.asp?rtid={$Ticket->id}">
 <img border="0" src="http://10.67.1.138:8004/images/buttons/begin_survey.gif" alt="Begin Survey"width="150" height="53"></a>
 <br>
 </font>
 </td></tr>
 <tr>
 <td colspan="2"><font face="Verdana" size="2">If the job has not been
 resolved or you have any further questions or concerns, please reply to this
 message or call us on extension 7804 (+64 7 838 7804)<br>
 &nbsp;</font></td>
 </tr>
 <tr><font face="Verdana" size="6"><br>
 <br>
 <b>Note: Any replies to this email will reopen the job</b></font> </p>
 <font face="Verdana" size="2"></td>
 </font>
 </tr>
 <tr>
 <td><p><font face="Verdana" size="2"><b><br>
 S<font color="red">i</font>tel NZ Information Technology</b><br>
 Level 3, ASB Building<br>
 500 Victoria Street<br>
 Hamilton, New Zealand<br>
 +64 7 838 7804</font></p></td>
 </tr>
 </table>

Then clearly adjusted the scrips to fire off the amended template.  This one was for OnResolve.

--
Regards

Aaron

On Mon, Nov 9, 2009 at 6:11 PM, Praveen Velu <praveen.velu@...> wrote:
Hi,

I am using RT 3.8 installed in Debian Lenny. I changed my default templates to html. but I am getting mails in plain text. When i receive mails, header shows 'Content-Type: text/plain; charset="utf-8"'.After a long search I came to know that due to security RT enabled only text/plain. how can i enable html email in RT.
Thanks for any help in advance

-Praveen-


http://windows.microsoft.com/shop Find the right PC for you.

_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com



--
Regards,

Aaron



New Windows 7: Find the right PC for you. Learn more.



--
Regards,

Aaron



Windows 7: Find the right PC for you. Learn more.
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: sales@...


Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
Buy a copy at http://rtbook.bestpractical.com