Sending HTML (MIME) email with Net::SMTP ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm trying to send HTML email (email with a MIME header) using
Net::SMTP in my code. (Hopefully eventually sending multipart
text/plain and text/HTML).

I've been sending plain text email with the code below in quite a few
programs... works fine. But, I am having trouble figuring out how to
send MIME email. I thought that if the headers appeared first in the
body section that it would work but that was a flop - it all shows up
as the body of the message.

I could use some help, or pointers. I could not find anything specific
in perldoc on this... perhaps I need to use another module to generate
MIME headers? I'd like to avoid changing modules if I can since
Net::SMTP seems to work well otherwise.


Site Timeline