Mail function problems

From: Date: Sun, 19 Mar 2006 21:50:40 +0000
Subject: Mail function problems
Groups: php.general 
Request: Send a blank email to php-general+get-232224@lists.php.net to get a copy of this message
Hi all, Has anyone had this problem before? I have a web server that resides on a windows platform (According to phpinfo()). I used the php mail function to send out a test message to make sure that the mail function would work when needed. I sent out the test message and I didn't get an email sent to me. This is what I did, I created the following variables: $to = "Paul.Goepfert@gmail.com"; $subject ="Test"; $message ="This is a test" $headers = "From: Paul " . "<Paul.Goepfert@gmail.com>\r\n"; $headers .= "X-Sender: <Paul.Goepfert@gmail.com>\r\n"; $headers .="X-Mailer: PHP\r\n"; $headers .="Return-Path: <Paul.Goepfert@gmail.com>\r\n"; I put them in the mail function as parameters mail($to,$subject,$message,$headers). Ok now this is what is found in phpinfo(): sendmail_from no value no value sendmail_path no value no value SMTP no value no value smtp_port 25 25 Do these values need to be set? if so, how do that on a remote server? I don't think I have access to the httpd config file or php.ini file. Thanks Paul

« previous php.general (#232224) next »