PDA

View Full Version : Mail acting finicky


corman420
25th February 2008, 05:59 PM
My send mail doesn't seem to be sending to external addresses.

This script, will not send to my email address. But when I use an internal email address (a domain that is on the server), it works fine.

My vbulletin script works fine. What's that all about. I can signup on vbulletin, and get the mail to an external address. As far as I know, vbulletin uses php to send mail as well. So Im stunned. I have no idea what's going on.

$email = " MYEMAILADDRESS@REMOVEDFORSECURITYREASONS.COM";
$subject = "Test Subject";
$message = "This is a test";
mail($email,$subject,$message);

I did recently have another server in the same data centre. All the account were on both servers. Each server has different DNS settings. On the old server I had the mail pointing to the new servers IP address. I did find a few mails going to the old server. But some are just lost entirely.

This still doesn't explain why I can't use the normail mail() function to send mail to an external address.

Any thoughts from anyone?

corman420
25th February 2008, 06:29 PM
Here's something to ponder, maybe someone has an answer. Safemode is OFF on my domains. But when I use -f in my mail() function, it works. Odd....