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 [EMAIL PROTECTED] <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
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

