how could I call "mail" command in PHP file

From: Date: Tue, 15 Jun 2004 16:46:30 +0000
Subject: how could I call "mail" command in PHP file
Groups: php.general 
Request: Send a blank email to php-general+get-188327@lists.php.net to get a copy of this message
Hello, all! So glad to join this maillist. I'm a beginner of PHP. I'd like to call a "mail" command in a "mail.php" like the following: <?php echo mail -s test wang2min@163.com <my.txt; ?> There was no error, but it didn't send the mail as I wished. Other command lines like: <?php echo ls *; ?> worked. "my.txt" lies in the same directory as "mail.php", and this command line works in the normal command line. But as a PHP file it doesn't work. What's wrong with this file? Could you give me some advices? Thanks a lot! Best! Min

« previous php.general (#188327) next »