Sending html mails using web interface

Hi,

Unable to send text/html mails from RT web interface. using RT 3.8.6-2 in Debian Lenny.
I could send html mails in auto reply templates by setting content-type to text/html. When sending mails from RT web interface content-type is changing to
text/plain, even it is html content
Is there any configuration require to enable html mail? I am facing this problem for a long time.

I enabled PreferRichText in RT_SiteConfig.pm
-Praveen-

Green cities and the melting world
http://green.in.msn.com/

Hi,

Unable to send text/html mails from RT web interface. using RT 3.8.6-2 in Debian Lenny.
I could send html mails in auto reply templates by setting content-type to

text/html. When sending mails from RT web interface content-type is changing to
text/plain, even it is html content
Is there any configuration require to enable html mail? I am facing this problem for a long time.

I enabled PreferRichText in RT_SiteConfig.pm

Have you followed the documentation in docs/templates.pod ?

-kevin

Have you followed the documentation in docs/templates.pod ?

I refered docs/templates.pod. That helped me to send html mails using templates. When I am sending from RT web interface for replying any ticket, mails not parsing to html and sending as content-type: text/plain

The world in moving pictures
http://news.in.msn.com/gallery/archive.aspx

Have you followed the documentation in docs/templates.pod ?

I refered docs/templates.pod. That helped me to send html mails using templates. When I am
sending from RT web interface for replying any ticket, mails not parsing to html and sending
as content-type: text/plain

All mail sends using templates.
It sounds like your correspondence templates are not html

-kevin

All mail sends using templates.
It sounds like your correspondence templates are not html

Thanks for your reply. Can you help me to enable this ??

-Praveen-

The latest songs, trailers and more
http://video.in.msn.com/

All mail sends using templates.
It sounds like your correspondence templates are not html

Thanks for your reply. Can you help me to enable this ??

Apply the documentation in docs/templates.pod to your Correspondence
templates

-kevin

One thing you may have to watch out for, that initially got me and went
unnoticed for quite a while. At the bottom of the template you usually
have something like this:

{$Transaction->Content()}

You will want to change to be:

{$Transaction->Content(Type => ‘text/html’)}

RT internally handles the conversions back and forth between text &
html.

I noticed that the html -> text conversion can be a little buggy
sometimes, doing unusual things with line wrapping and spacing depending
on what is on the end of a line (tags or whitespace). My guess is that
HTML::FormatText is a little buggy when writing out plain text from the
parsed html tree, but I haven’t bothered digging into it.

~JasonOn Mon, Mar 29, 2010 at 10:27:45AM +0530, Praveen C wrote:

All mail sends using templates.
It sounds like your correspondence templates are not html

Thanks for your reply. Can you help me to enable this ??

Apply the documentation in docs/templates.pod to your Correspondence
templates

-kevin

/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/

smime.p7s (3.88 KB)

Thanks Jason

I done the same in Correspondence teplates. But I am getting mails like this :frowning:

bvcbvcbvc

Mails body contains html tags but Content Type still remains text/plain

-Praveen-

From: smithj4@bnl.gov
To: rt-users@lists.bestpractical.com
Date: Mon, 29 Mar 2010 16:30:47 -0400
Subject: Re: [rt-users] Sending html mails using web interface

One thing you may have to watch out for, that initially got me and went
unnoticed for quite a while. At the bottom of the template you usually
have something like this:

{$Transaction->Content()}

You will want to change to be:

{$Transaction->Content(Type => ‘text/html’)}

RT internally handles the conversions back and forth between text &
html.

I noticed that the html -> text conversion can be a little buggy
sometimes, doing unusual things with line wrapping and spacing depending
on what is on the end of a line (tags or whitespace). My guess is that
HTML::FormatText is a little buggy when writing out plain text from the
parsed html tree, but I haven’t bothered digging into it.

~Jason

All mail sends using templates.
It sounds like your correspondence templates are not html

Thanks for your reply. Can you help me to enable this ??

Apply the documentation in docs/templates.pod to your Correspondence
templates

-kevin


/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/

Fight for the top Test spot
http://sports.in.msn.com/cricket/

Hi Jason/Kevin

Finally I got fixed . changed Correspondence template like this

Content-Type: text/html
RT-Attach-Message: yes

{$Transaction->Content()}

Thanks , your help is really appreciable

-Praveen-

From: smithj4@bnl.gov
To: rt-users@lists.bestpractical.com
Date: Mon, 29 Mar 2010 16:30:47 -0400
Subject: Re: [rt-users] Sending html mails using web interface

One thing you may have to watch out for, that initially got me and went
unnoticed for quite a while. At the bottom of the template you usually
have something like this:

{$Transaction->Content()}

You will want to change to be:

{$Transaction->Content(Type => ‘text/html’)}

RT internally handles the conversions back and forth between text &
html.

I noticed that the html -> text conversion can be a little buggy
sometimes, doing unusual things with line wrapping and spacing depending
on what is on the end of a line (tags or whitespace). My guess is that
HTML::FormatText is a little buggy when writing out plain text from the
parsed html tree, but I haven’t bothered digging into it.

~Jason

All mail sends using templates.
It sounds like your correspondence templates are not html

Thanks for your reply. Can you help me to enable this ??

Apply the documentation in docs/templates.pod to your Correspondence
templates

-kevin


/------------------------------------------------------------------
| Jason A. Smith Email: smithj4@bnl.gov |
| Atlas Computing Facility, Bldg. 510M Phone: +1-631-344-4226 |
| Brookhaven National Lab, P.O. Box 5000 Fax: +1-631-344-7616 |
| Upton, NY 11973-5000, U.S.A. |
------------------------------------------------------------------/

What does Budget 2010 mean for you? Catch all the latest news, updates and analysis on MSN Budget Special
http://news.in.msn.com/moneyspecial/budget2010