"Wagner, David --- Senior Programmer Analyst --- WGO" wrote: > > 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.
Yes. You are using an inappropriate format for the medium. E-mail is basically a plain-text medium. It has facilities for attching other files, and there are some extensions for inclusions. Those extensions are not portable. What you see above is good RTF, as far as I can tell. The content-type, though, should not say text. Although the portability of RTF comes largely from its use of plain text in its control sequences, it is more an application fromat than text. Those tags must be interpreted to display the document properly. Why not just attach formatted documents. It is much less rude. Also, you should be aware that attempts to mimic the look and feel of Outlook mail may get you messages tagged as spam or potential viruses. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>