in reply to Sending HTML emails HELP!

Looks like Email::MIME::CreateHTML would do what you want quite easily, although it wouldn't do strictly what you're asking since it wouldn't require your module at all.

Replies are listed 'Best First'.
Re^2: Sending HTML emails HELP!
by Anonymous Monk on Nov 25, 2008 at 17:24 UTC
    Ware of those Modules, but need to use the current code, thanks!

      I recommend you use MIME::Base64 to base64-encode the HTML, and include the "content-encoding: base64" header.

      Otherwise, you will find that the HTML gets some extra newline characters where you don't want them (i.e. - in a hyperlink or image source attribute).

        So, just this line of code
        print $sock "Content-type: text/plain\n\n";
        wouldn't make it work.