in reply to Re: Sending HTML emails HELP!
in thread Sending HTML emails HELP!

Ware of those Modules, but need to use the current code, thanks!

Replies are listed 'Best First'.
Re^3: Sending HTML emails HELP!
by jdrago_999 (Hermit) on Nov 25, 2008 at 17:33 UTC

    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.