[rt-users] Only Plain Text Mails.
Kevin Falcone
falcone at bestpractical.com
Wed Jun 3 08:17:40 EDT 2009
On Jun 1, 2009, at 8:18 PM, Rana Tanveer 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.
You appear to have missed the important part of that URL
=item Content-Type: text/html
The special header "Content-Type: text/html" tells RT that the
template should
be parsed as HTML. RT will automatically make the outgoing message
multipart.
That way, recipients who can read only plaintext email will receive
something
readable, while users with clients which can display HTML will receive
the full
experience. Please be aware that HTML support in mail clients varies
greatly,
much more so than different web browsers.
We welcome contributions of HTML-ization of builtin templates.
=back
You didn't provide examples of what you tried, which makes it difficult
to tell you what broke.
-kevin
>
>
> 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
> ---------------------------------------------
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com
More information about the rt-users
mailing list