If I want to send an email notice after someone adds a new record, it's very easy for Unix. In db.cgi, in sub add_record {, afer &html_add_success; you would add:
print MAIL "To: you\@yourdomain.com\n";
print MAIL "From: "$in{'Email'}\n";
print MAIL "Subject: Subject goes here\n\n";
print MAIL "$in{'Name'} wrote: \n";
print MAIL "Domain: $in{'Domain'}\n";
print MAIL "Description: $in{'Description'}\n";
close MAIL;
Now the big question is, how can you do it with NT? Seems like everyone is saying you have to install this or you have to install that. Links can do it, this UBB can do it, and they don't require anything to be installed on the NT server.
I think many people are interested in this topic. If anyone knows how to do it exactly, please let us know.
[This message has been edited by Katana Man (edited February 22, 1999).]
Quote:
open (MAIL, "|/usr/lib/sendmail -t") or &cgierr("can't get to sendmail. reason: $!"); print MAIL "To: you\@yourdomain.com\n";
print MAIL "From: "$in{'Email'}\n";
print MAIL "Subject: Subject goes here\n\n";
print MAIL "$in{'Name'} wrote: \n";
print MAIL "Domain: $in{'Domain'}\n";
print MAIL "Description: $in{'Description'}\n";
close MAIL;
Now the big question is, how can you do it with NT? Seems like everyone is saying you have to install this or you have to install that. Links can do it, this UBB can do it, and they don't require anything to be installed on the NT server.
I think many people are interested in this topic. If anyone knows how to do it exactly, please let us know.
[This message has been edited by Katana Man (edited February 22, 1999).]