Re: how could I call "mail" command in PHP file

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: how could I call "mail" command in PHP file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188331@lists.php.net to get a copy of this message
Have you try mail() function? Min Wang wrote:
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
-- Miguel J. Jiménez ISOTROL, S.A. (Área de Internet) Avda. Innovación nº1, 3ª - 41020 Sevilla (ESPAÑA) mjjimenez AT isotrol DOT com --- http://www.isotrol.com ICQ# 12670750 TLFNO. 955036800 ext. 111

« previous php.general (#188331) next »