I need the record data emailed to me.
I know the issue of email has been addressed in several posts, but only one I could find partially answers my question.
The most comprehensive I have seen is:
open (MAIL, "|/usr/lib/sendmail -t") or &cgierr("Can't open sendmail: $!");
print MAIL "To: youraddress\@yourdomain.com\n";
print MAIL "From: DBMan\n";
print MAIL "Subject: New user signup!\n\n";
print MAIL "A new user signed up on ", scalar localtime(), ".\n";
print MAIL "Userid: $in{'userid'}\n";
print MAIL "Pass: $in{'pw'}\n";
close MAIL;
Right after:
&html_signup_success;
in db.cgi (around line 700). Make sure to replace the email address with your own (and don't forget to escape the @).
This addresses notification of a new user added. I tried this under &html_add_success;
and it does not work. Is is supposed to?
I added the above code and no error messages occur, but mail does not get sent either.
Any help would be appreciated.
Thank You,
John
I know the issue of email has been addressed in several posts, but only one I could find partially answers my question.
The most comprehensive I have seen is:
open (MAIL, "|/usr/lib/sendmail -t") or &cgierr("Can't open sendmail: $!");
print MAIL "To: youraddress\@yourdomain.com\n";
print MAIL "From: DBMan\n";
print MAIL "Subject: New user signup!\n\n";
print MAIL "A new user signed up on ", scalar localtime(), ".\n";
print MAIL "Userid: $in{'userid'}\n";
print MAIL "Pass: $in{'pw'}\n";
close MAIL;
Right after:
&html_signup_success;
in db.cgi (around line 700). Make sure to replace the email address with your own (and don't forget to escape the @).
This addresses notification of a new user added. I tried this under &html_add_success;
and it does not work. Is is supposed to?
I added the above code and no error messages occur, but mail does not get sent either.
Any help would be appreciated.
Thank You,
John