Hi,
Try adding this script to your server (save as test_mail.cgi). Be sure to update the path to sendmail ($sendmail) and the email to send the test to ($to);
Code:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use strict;
my $sendmail = qq|/usr/lib/sendmail|;
my $to = q|you@yourdomain.com|;
open(MAIL, "|$sendmail -t") || die "Error: $!";
print MAIL "To: $to \n";
print MAIL "From: $to \n";
print MAIL "Reply-to: $to \n";
print MAIL "Subject: Test \n\n";
print MAIL "Thanks for contacting us. This is just a test email \n\n";
print MAIL "\n";
close(MAIL);
Then, CHMOD to 755, and try running from your server.
If there is a problem with sendmail, then the problem should occur in this script too.
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work! Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500) Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins! Compare our different Plugin packages *new* Free CSS Templates