Be advised that not everyone can read HTML mail and there is a large number of people ( myself included ) who do not like it at all.
 
This is what I use, I'm sure there are better ways...
 
    use Mail::Sender;
 
    my $sender = new Mail::Sender { smtp => 'mail' };
 
    $sender->Open( { from => 'rongrabowski@',
                 fromaddr => 'rongrabowski@',
              fake_from => "noone\@",
                      to => 'foo@',
                  subject => 'bar',
                  headers => "MIME-Version: 1.0\r\nContent-type: text/html\r\nContent-Transfer-Encoding: 7bit" } );
    $sender->Send(<<END_OF_HTML_MAIL);
<PRE>
 hello world
</PRE>
END_OF_HTML_MAIL
 
    $sender->Close;
 
 
----- Original Message -----
From: andy
Sent: Tuesday, June 26, 2001 2:41 PM
Subject: html in emails

hi,
i'm trying to show html in an email.  what headers should i use to be able to view the actual layout instead of all the tags showing up?
 
--andy

Reply via email to