in reply to Hand Rolled CGI
If this script is definitely being executed, the next thing to suspect is the attempt to pipe info to sendmail. You don't check the open or close for errors, which would give you some hints if those operations are failing for some reason. If either operation fails, particularly the open, then naturally there will be no email sent.
For debugging purposes, you can have the error displayed to the browser if you addopen(MAIL, "|/usr/sbin/sendmail -t") or die "Ack! Failed to open pipe to sendmail: $!";
use CGI::Carp qw(fatalsToBrowser);
to the top of your script.
|
|---|