Re: how could I call "mail" command in PHP file
| From: | Justin Patrin | Date: | Tue, 15 Jun 2004 16:49:38 +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-188328@lists.php.net to get a copy of this message | ||
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 echoYour directory may not be set correctly. Have you tried printing getcwd() and seeing if it's correct? If this doesn't work, why not try using mail() or one of the many mailing packages (e.g. PEAR Mail). -- paperCrane <Justin Patrin>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 echols *; ?> 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