CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Help - how to send messages and have them appear as html..

 



Falazar69
Deleted

Mar 29, 2000, 2:30 PM

Post #1 of 2 (570 views)
Help - how to send messages and have them appear as html.. Can't Post

Help - how to send messages and have them appear as html..

I need to be able to send the results of a form as a html table.... I already have the CGI script working quite well except for the one thing... when I read the emails they are just plain text.... how do I go about fixing this?
Thanx... please email response... Falazar@yahoo.com
Falazar.tripod.com


Cure
User

Mar 29, 2000, 4:26 PM

Post #2 of 2 (570 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).]

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives