[rt-users] Only Plain Text Mails.
Rana Tanveer
ranatanveer at gmail.com
Thu Jun 4 18:37:45 EDT 2009
Hi
I have added Content-Type: text/html below to RT-Attach-Message: Yes
like:
RT-Attach-Message: Yes
Content-Type: text/html
Now RT is sending mails in html but behavior of ticket creation and
replies is changed.
is there any way to use Content-Type: text/html in templates so
default behavoviour dies not change. now i am getting mails like this.
=====================================
...
To: undisclosed-recipients:;
This is a multi-part message in MIME format...
------------=_1244127537-8544-41
Content-type: multipart/alternative;
boundary="----------=_1244127537-8544-40"
Content-Transfer-Encoding: 8bit
This is a multi-part message in MIME format...
------------=_1244127537-8544-40
RT-Attach-Message: Yes
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
------------=_1244127537-8544-40
Content-Type: text/html; charset="utf-8"
X-RT-Original-Encoding: utf-8
<URL:
https://ticket.mypublicdomain.com/Ticket/Display.html?id=34104
>
<pre>
</pre>
------------=_1244127537-8544-40--
------------=_1244127537-8544-41
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
RT-Attachment: 34104/955621/1213614
AOA Sir,
This is test message
------------=_1244127537-8544-41
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
RT-Attachment: 34104/955621/1213615
[Attachment stripped: Original attachment type: "application/zip", name:
"HEALTH CARDS SCAN 01.zip"]
------------=_1244127537-8544-41--
====================================================
I have tried different methods mentioned in wiki of templates but no help.
can someone guide how to set the templates ?
or RT 3.8.2 is buggy ? as these kind of problem never come in any
previous versions.
On Tue, Jun 2, 2009 at 6:18 AM, Rana Tanveer <ranatanveer at gmail.com> wrote:
>
> Hi Kavin
>
>
> I have tried hard to implement according to your advise. but unfortunately it does not work or may i did something wrong.
>
> http://code.bestpractical.com/bps-public/rt/3.8/trunk/docs/templates.pod
>
> can you please give me some exact example so that i use that with little modification.
>
> I have spent 10 hours for this task to sent mails in text/html.
>
> i am thinking about to modify SendEmail.pm, as this was not the right way to deal with so i did not change this file. as it is clearly mentioned here that for security reason we only send textual mails.
>
> can you please help ?
>
> Part of the
>
> /usr/lib/perl5/vendor_perl/5.10.0/RT/Action/SendEmail.pm
>
> # For security reasons, we only send out textual mails.
> foreach my $part ( grep !$_->is_multipart, $MIMEObj->parts_DFS ) {
> .
> .
> .
>
> On May 31, 2009, at 12:32 AM, Rana Tanveer wrote:
>
> > I am using RT 3.8.2, but RT is sending only plain text messages.
>
> Please read docs/templates.pod in your RT tarball which
> describes the steps necessary to generate outgoing HTML
> email (the settings below only affect display of mail within
> RT)
>
> -kevin
>
>
> >
> > i used below setting but same result.
> >
> > Set($PreferRichText, 1);
> > Set($MessageBoxRichText, 1);
> > Set($MessageBoxRichTextHeight, 200);
> >
> > I even try to search mailing lists but no luck.
> >
> > could anyone guide me what is wrong, or what might should i have to
> > use ?
> >
> > --
> > ---------------------------------------------
> > Rana Tanveer
> > +923224194457
> > http://www.sysadminsline.com
> > ---------------------------------------------
>
> On Sun, May 31, 2009 at 10:32 AM, Rana Tanveer <ranatanveer at gmail.com> wrote:
>>
>> Hi Every one.
>>
>> I am using RT 3.8.2, but RT is sending only plain text messages.
>>
>> i used below setting but same result.
>>
>> Set($PreferRichText, 1);
>> Set($MessageBoxRichText, 1);
>> Set($MessageBoxRichTextHeight, 200);
>>
>> I even try to search mailing lists but no luck.
>>
>> could anyone guide me what is wrong, or what might should i have to use ?
>> --
>> ---------------------------------------------
>> Rana Tanveer
>> +923224194457
>> http://www.sysadminsline.com
>> ---------------------------------------------
>
>
> --
> ---------------------------------------------
> Rana Tanveer
> +923224194457
> http://www.sysadminsline.com
> ---------------------------------------------
--
---------------------------------------------
Rana Tanveer
+923224194457
http://www.sysadminsline.com
---------------------------------------------
More information about the rt-users
mailing list