Re: mail()

From: Date: Wed, 20 Mar 2002 06:40:35 +0000
Subject: Re: mail()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-89285@lists.php.net to get a copy of this message
sorry...i should have mentioned also that I am not using the internal mail server but i am using an external mail server On Wednesday, March 20, 2002, at 05:24 PM, Jennifer wrote:
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 (#89285) next »