I am using
[nms-cgi.sourceforge.net...]
per some recommendations here.
The form seems to work (no server errors or anything) and it redirects to my thank you page as it should. The only small problem is that it is not actually mailing anything!
I have gone over the instructions and examples many times. The path to perl and sendmail are correct according to my host.
Man I'm stuck. Any ideas for how to make this work?
Thank you...
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/sbin/sendmail -oi -t';
$postmaster = 'me@mysite.com';
@referers = qw(me@mysite.com xx.****.xx.**** localhost);
@allow_mail_to = qw(me@mysite.com xx.xxx.xx.xxx localhost);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
From: you@your.com
Subject: form submission
Thank you for your form submission.
END_OF_CONFIRMATION
Maybe you're just missing the part where you open 'MAIL' as a filehandle and pipe the message to sendmail?
#!/usr/local/bin/perl
#
# ====================
# Quick sendmail test.
# ====================
#
$mailto = 'someone@some.com';
$postmaster = 'you@yoursite.com';
$mailprog = '/usr/sbin/sendmail';
$subj = 'testing my mail script';
$msg = 'Can you hear me now?';
#
open (MAIL,"¦$mailprog -t");
print MAIL "To: $mailto\n";
print MAIL "From: $postmaster\n";
print MAIL "Subject: $subj\n";
print MAIL "$msg";
close (MAIL);
#
exit; # stage left...
#
#