
Cure
User
Mar 29, 2000, 4:26 PM
Post #2 of 2
(292 views)
|
|
Re: Help - how to send messages and have them appear as html..
[In reply to]
|
Can't Post
|
|
Hi EXAMPLE #!/usr/bin/perl $sendmail='/usr/sbin/sendmail'; print "Content-type: text/html\n\n"; print 'hi'; open (MAIL, "|$sendmail -t") | | die "Can't open mailprogram $!\n"; print MAIL <<"END_OF_MAIL"; To: you\@some.net From: me\@some.net Subject: TEST Content-Type: text/html <html><body> <font color=blue>I Love Perl</font> </body></html> END_OF_MAIL close (MAIL); Cure [This message has been edited by Cure (edited 03-29-2000).]
|