R. Joseph Newton wrote:
> "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.  
        I am just trying to give my user what they asked for and they do not want any 
attachments. I was using what Jan K suggested, but obviously missing more than just a 
little bit.

Wags ;)
> 
> 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



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

      Thanks.

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



**********************************************************
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