Ok, I was trying to break the habit of using the mail() function and instead start using pear's mail library so I can authenticate myself and I won't have to send as "nobody".
Well, I wrote a sample script and had it send 3 emails, one for each of the largest free email providers. One to gmail, yahoo, and hotmail. All of them go through fine except hotmail. It doesn't throw it in the junk mail, it just doesn't get delivered. I've tried this on 2 servers, one on tch and also on another host. Same results...Any Ideas? If someone wants to try it out, that would be great.
Here is the snippet of code to get you going.
http://section31.us/scripts/test/smtp/hotmail.wth.phps
><?
error_reporting(E_ALL);
include('Mail.php');
$headers['From'] = 'name <user@yourdomain.tld>'; // put your name and email here
$headers['Subject'] = 'Testing SMTP Mail';
$body = 'This is a plain text body message.';
$params['auth'] = true;
$params['host'] = 'localhost';
$params['username'] = 'user@yourdomain.tld'; // put your username here which is your email address
$params['password'] = 'pass'; // pur your pass here
$params["persist"] = true;
$mail_object =& Mail::factory('smtp', $params);
foreach (array('user@hotmail.com', 'user@yahoo.com', 'user@gmail.com') as $to) { // put your emails here
$headers['To'] = $to;
$mail_object->send($to, $headers, $body);
echo "Email sent to $to!<br />";
}
?>