in reply to Email::Simple doing something i'm not expecting??

The problem is with HTML::Stripper. It's designed to accept multiple chunks of HTML to produce its final output. (The only hint in the docs to this effect is [emphasis mine]: "Now that we have our stripper object (wow!), we use it on one or more chunks of HTML using the strip_html() method").

If you move the creation of the HTML::Stripper object into your $msg loop, it should work as intended.

  • Comment on Re: Email::Simple doing something i'm not expecting??

Replies are listed 'Best First'.
Re^2: Email::Simple doing something i'm not expecting??
by eLore (Hermit) on Sep 07, 2004 at 16:34 UTC
    benizi was correct. I moved the stripper initialization inside the message loop and it now works as i had expected initially.

    Many thanks!!

    -eLore