I have b
een trying what you suggest, but am not getting the rich text.  Here is the spot of 
code:

my $sender = new Mail::Sender {smtp => 'xxx.xxx.xxx.xxx.xxx', 
                               from => '[EMAIL PROTECTED]',
                               to      => $MyTo,
                               subject => $MySubject};
                               
$sender->MailMsg({  ctype => 'text/rtf',
                    msg     => $MyEmailData
                  });

        Here is what I get in the email:
{\rtf1\ansi\deff0
{\fonttbl {\f0\fmodern Courier New;}
{\f1\froman Times;}}
\deflang1024\widowctrl\plain\fs16\noproof
\par
\par \fs16\hich\af2\dbch\af23\loch\f2 Run Info:
\par \fs16\hich\af2\dbch\af23\loch\f2 Report used As of Date : 02/28/04
\par \fs16\hich\af2\dbch\af23\loch\f2 Run Date/Time of Report: 04/03/02-09:43:24

        Any ideas what I can do or what I am doing wrong.  I take the same data and 
write it to a file and am able to open in Word as RTF.

      Any questions and/or problems, please let me know.

      Thanks.

Wags ;)
Int: 9-8-002-2224
Ext: 408-323-4225x2224



-----Original Message-----
From: Jenda Krynicky [mailto:[EMAIL PROTECTED]
Sent: Monday, March 01, 2004 02:56
To: Beginner Perl
Subject: Re: Any way for Perl to write RTF within email as the body of
an email without attachments


From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]>
>  I have an email I am doing, but there is so much data and I am
>  running into problems on wrapping of lines on the screen. I use
>  sendmail and Sender, but would be open to anything that would allow
>  me to imitate the RTF which one can write as part of Outlook. It can
>  not be an attachment.

If by Sender you mean Mail::Sender you can change the content type 
very easily

        $sender->MailMsg({
                ...
                ctype => 'text/rtf',
        });

You should be able to find a module that'll help you generate the RTF 
on CPAN - http://search.cpan.org/.

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




**********************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
****************************************************************


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to