Wow...this is stupid. The amount of times I used Sendmail, without even thinking about it...but now it just wont work ( on another site). I have;
print MAIL "To: $recipient \n";
print MAIL "From: $email \n";
print MAIL "Reply-to: $email \n";
print MAIL "Subject: $subject \n\n";
print MAIL "\n";
print MAIL $message;
print MAIL "\n";
print MAIL "We will try and get back to you ASAP\n";
print MAIL "\n";
close(MAIL);
`whereis perl` returns;
sendmail: /usr/sbin/sendmail
/usr/share/man/man8/sendmail.8.gz
/usr/src/usr.sbin/sendmail
/usr/src/contrib/sendmail
/usr/ports/mail/sendmail
For sendmail, I've tried;
/usr/sbin/sendmail -t -i
/usr/sbin/sendmail -t -oeq
/usr/sbin/sendmail -t
/usr/lib/sendmail -t -i
/usr/lib/sendmail -t -oeq
/usr/lib/sendmail -t
/usr/bin/sendmail -t -i
/usr/bin/sendmail -t -oeq
/usr/bin/sendmail -t
Can anyone see what I'm missing? The &error sub doesn't seem to be catching any errors
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Code:
open(MAIL, "|/usr/sbin/sendmail -t -oeq") || die &error("Cant open sendmail. Reason: $!"); print MAIL "To: $recipient \n";
print MAIL "From: $email \n";
print MAIL "Reply-to: $email \n";
print MAIL "Subject: $subject \n\n";
print MAIL "\n";
print MAIL $message;
print MAIL "\n";
print MAIL "We will try and get back to you ASAP\n";
print MAIL "\n";
close(MAIL);
`whereis perl` returns;
sendmail: /usr/sbin/sendmail
/usr/share/man/man8/sendmail.8.gz
/usr/src/usr.sbin/sendmail
/usr/src/contrib/sendmail
/usr/ports/mail/sendmail
For sendmail, I've tried;
/usr/sbin/sendmail -t -i
/usr/sbin/sendmail -t -oeq
/usr/sbin/sendmail -t
/usr/lib/sendmail -t -i
/usr/lib/sendmail -t -oeq
/usr/lib/sendmail -t
/usr/bin/sendmail -t -i
/usr/bin/sendmail -t -oeq
/usr/bin/sendmail -t
Can anyone see what I'm missing? The &error sub doesn't seem to be catching any errors
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!