I guess I should write a FAQ for this.
Are you on a Unix system? Do you have sendmail? (That's the only system I know, so I can only give you info for that kind. I'm sure that someone else will be able to help you with a Windows or NT system.)
Find out where
sendmail is on your system.
Add the following lines to your .cfg file:
Code:
# Full path to sendmail on your system
$mailprog = "|/usr/lib/sendmail -t -oeq";
# Your email address
$admin_email = 'you@yourserver.com';
changing the path and the email address to match your situation.
In sub html_add_success, right at the beginning, add
Code:
open (MAIL, "$mailprog") or &cgierr("Can't start mail program");
print MAIL "To: $admin_email\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: $html_title New Record Added\n\n";
print MAIL "-" x 75 . "\n\n";
print MAIL "The following record was added to $html_title\n\n";
foreach $column ($db_cols) {
print MAIL "$column: $in{$column}\n";
}
close MAIL;
This will give you all of the information that is in the new record.
------------------
JPD