From: mike <[EMAIL PROTECTED]>
> I am trying to use the Net::SMTP::Multipart to send attachments (word
> doc) and the encoding is getting mangled on non-linux machines
> 
> If I send it to myself everything is fine (either external or via my
> mail server)
> 
> this appears to the relevant part of the modules
> 
> sub FileAttach {
> ...

Looks OK
(I don't think it's the best idea to load the whole file into memory, 
encode it in one go and then send it. For big files it would be  
better to read+encode+send in chunks. IMHO of course)

>     and this my script
> 
> $smtp->Header(
> To => "$mailing1[2]",
> Subj => "Management Meeting",
> >From => "[EMAIL PROTECTED]",
> >From => "[EMAIL PROTECTED]");
> 
> $smtp->Text("text");
> $smtp->FileAttach ("doc_file.doc");
> $smtp->End();

Seems to be fine as well.

Could you send me a test doc by your script to [EMAIL PROTECTED]

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>


Reply via email to