Thanks for your reply, yes, I started to go a bit overboard with 'sysopen'. I have modified the code as you suggested
open(SENDMAIL, '|/usr/sbin/sendmail -oi -t') or do{ unlink($outfile); diehtml("Can't fork for sendmail: $!\n")};
and the explanation helped a lot to get a better idea of this. You will then be doing this:
print SENDMAIL $msg close SENDMAIL;
Yes, there are pages of text, just beforehand though, is this
print SENDMAIL <<"EOF";
.. and at the end
EOF close(SENDMAIL) or warn "sendmail didn't close nicely";
I have PRINT instaed of the 'warn'. I actually added the 'warn' lines as you suggested, but they didn't appear. That just could be because, for testing, I'm just hitting the BACK button twice, because I'm lazy and don't want to fill in all those details on the order form again. What I'm saying is, even though I changed the Perl script, uploaded it, it may not have ben 'reloaded' in the browser. Hmm, that's not true, I have added extra 'prints' in the last few days, and they appeared immediately.
Anyway, onto SSH access and sendmail; now I'm _really_ confused, here's the output
---------------------------------
which sendmail
which: no sendmail in (/usr/local/bin:/bin:/usr/bin)
/usr/sbin/sendmail -t
2003-10-03 04:03:17 Exim configuration error in line 783:
user mailman was not found
----------------------------------
.... but in the CPanel it says
Path to sendmail /usr/sbin/sendmail
and I run FormMail.pl (NMS version) on 2 domains on the same server, without any problems ? NMS have this line though
L<CGI::NMS::Mailer::Sendmail>
... so it looks like they have their own 'sendmail' modules, is that right ? Looks like I'd better post to the Help Desk where the server is. :)
Thanks a lot,
Peter
In reply to Re: Re: Sendmail problems
by peterr
in thread Sendmail problems
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |