in reply to Runs with perl -d, but ...

Wierd stuff...

I use very similar code with MIME::Lite myself, and haven't seen similar misbehaviour.

The only difference I see between your code and mine is that I use "multipart/mixed" and then attach the text data using

$msg->attach(Type=>"TEXT",Data=>"Here's your fax");
before attaching the file.

I can't see that making a difference, though. I don't see why MIME::Lite would care, or why -d would change anything.

Does the send under the debugger actually work? I mean, I see that your code things it worked, but does anthony@wherever actually get the file?
--
Mike

EDIT: Added note about multipart/mixed

Replies are listed 'Best First'.
Re: Re: Runs with perl -d, but ...
by notsoevil (Pilgrim) on Apr 08, 2003 at 19:29 UTC
    Yep, the send actually works -- the file comes through just fine to me, attachment and all. Which is why I don't think it is the format of the MIME::Lite code ... but I'm still at a loss.

    --
    notsoevil
    --
    Jeremiah 49:32 - And their camels shall be a booty. . .

      Did you try explicitly setting multipart/mixed?

      The docs seem to imply that's what the "attach to singlepart" hack does, anyways.
      --
      Mike