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
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!