From:                   "Paul Kraus" <[EMAIL PROTECTED]>
> I am sending a mail with an excel sheet attached (created with
> spreadsheet::writeexcel.
> 
> I am using Mime::Lite to send the mail.
> 
> Is their a way to have the file as the body of the message?
> 
> If I open Excel and mail the worksheet from there Excel will include
> the worksheet as the actual body of the message.

Not sure about the exact syntax with MIME::Lite, but all you need to 
do is to specify the right Content-type: for the email (look what 
Excel used) and send the generated data in the body instead of as an 
attachment. You might have to open the generated file (do not forget 
to binmode() the filehandle!), read the data and pass it to 
MIME::Lite. You should also ask MIME::Lite to Base64 encode the body!

Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain
I can't find it.
                                        --- me


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