If your having problems using Mail() you could always try using an SMTP server directly, for example:
ok, so it's not the best solution in the world, but it does the job.
hope it helps you out!
<?php
$smtp = @fsockopen("IP_Addr_goes_here",25,$errno,$errdesc,30);
if(!$smtp)
{
print "Could not connect to SMTP server";
}
else {
print "Connected to SMTP server\n";
print fgets($smtp,1024);
$helo = fputs($smtp, "helo server\n");
print fgets($smtp,1024);
$send = fputs($smtp, "MAIL FROM: from_email_goes_here\n");
print fgets($smtp,1024);
$send2 = fputs($smtp, "RCPT TO: to_email_goes_here\n");
print fgets($smtp,1024);
$send3 = fputs($smtp, "DATA\n");
print fgets($smtp,1024);
$send4 = fputs($smtp, "Just testing SMTP\n.\n");
print fgets($smtp,1024);
fputs($smtp,"QUIT\n");
print fgets($smtp,1024);
fclose($smtp);
}
?>