mail()

From: Date: Wed, 20 Mar 2002 06:24:11 +0000
Subject: mail()
Groups: php.general 
Request: Send a blank email to php-general+get-89282@lists.php.net to get a copy of this message
Hi guys, I'm new to PHP and i'm trying to set it up so that i can use the mail() function to send emails. I'm using Mac OS X 10.1.3, PHP 4.1.2 and Apache/1.3.20. I've copied the php.ini-dist to usr/local/lib and renamed it php.ini I have also uncommented the following lines from the httpd.conf - AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-source .phps The server was also restarted using the command: sudo apachectl graceful When i run my .php file containing: <?php $to="jen@21yos.com"; $from="jenvier@hotmail.com"; $subject="Hi"; $message="this message"; mail($to, $subject, $message, "$from\r\nX-Priority: 1 (Highest)"); ?> ... nothing seems to happen ei. the mail was not sent. Can anyone suggest anything that i could do to try and rectify this problem. Thanks in advance. -jen-

« previous php.general (#89282) next »