Hey everyone. I have just a basic mail command but it is acting weird. I just got a dedicated server and transfered a site over to it and now the php mail script isn't working on the new server.
The weird thing is is that it will ONLY send the mail if it is to an email address that has been setup for a domain on the same dedicated server. If I try to send it to ANY other email it won't work.
Maybe something in php.ini I need to edit or has anyone else had this problem before and know how to fix it. Thanks
Oh here is just the basic mail command I am using
<?
$subject = "test subject";
$message = "test message";
mail("email@mail.com", $subject, $message, "From: $email\r\n");
?>
Everything was working fine on the old server and still does. Just not on this new dedicated server.
EDIT: also in my php.ini file the sendmail is set at /usr/sbin/sendmail -t -i
what is the "-t -i" what do those mean. should they be there?