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:
Emailing post from forum?

 



SheWhoRiverdance
Deleted

Feb 5, 2001, 10:18 AM

Post #1 of 2 (159 views)
Emailing post from forum? Can't Post

I have a forum and I would like to make it so when someone posts to the forum, an email goes out to a specific address with the contents of the post. I know it can be done, I just don't know how!. I'm still learning perl obviously, any help would be appreciated



muinatit
Deleted

Feb 5, 2001, 12:44 PM

Post #2 of 2 (156 views)
Re: Emailing post from forum? [In reply to] Can't Post

Well give us the code somehow. Attach it or something. But this is how to send a mail...


Code
open (MAIL, "/usr/sbin/sendmail -t") || die $!; 
print MAIL "To: your\@email.com\n";
print MAIL "From: $form{'email'}\n";
print MAIL "Subject: New Message!\n\n";

print MAIL "Here's the contents of the new message!\n\n";
print MAIL $form{'message'};
close (MAIL);

muinatit
muinatit@hotpop.com

 
 


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

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