NeilFawcett
Programmer
I'm currently suffering from a problem on my server (started last night), where any attempt I make to do a sendmail hangs... The process just sits there and goes no where...
Anyone ever had anything like this happen to them?
My server company will no doubt try and blame me for this "hanging", could this in anyway be the case?
I do have a scripts sending emails... Probably upto a max of several a minute... but on average maybe one a minute.
I've written a test program as follows, and even this currently hangs:-
Anyone ever had anything like this happen to them?
My server company will no doubt try and blame me for this "hanging", could this in anyway be the case?
I do have a scripts sending emails... Probably upto a max of several a minute... but on average maybe one a minute.
I've written a test program as follows, and even this currently hangs:-
Code:
#!/usr/bin/perl
#--------------
$|=1;
print "Content-type: text/html\n\nMail Test<BR>";
$var="my\@emailaddress.com";
open MAIL,"|/usr/sbin/sendmail -t" || ¨
print MAIL "To:$var\n";
print MAIL "From:test\@test.com\n";
print MAIL "Subject:Test Message\n\n";
print MAIL "This is a message.\n\n";
close MAIL || ¨
exit;
sub die{
print "ERROR!";
exit;
}