Re: mail()
| From: | Tim Wolgemuth | Date: | Tue, 10 Oct 2000 15:04:18 +0000 |
| Subject: | Re: mail() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19359@lists.php.net to get a copy of this message | ||
I have found what my problem was. The problem was that in passwd I had nobody's home dir /. when I changed that to something else and made them own that dir mail started to work.
Tim Wolgemuth
At 02:08 PM 9/1/00 -0400, Tim Wolgemuth wrote:
Same thing. Tim Wolgemuth At 10:57 AM 9/1/00 +0000, J!M wrote:Tim, Try changing your sendmail_path in php.ini to /var/qmail/bin/qmail-inject This has worked well for me. JimI did write a test script and it failed. That was the first things that I did with I saw the error message. Here is the test script. <?PHP Mail("tim@wolgemuth.cc","test","this is a test message"); echo "sent"; ?> I am able to sent message out from script using perl. Tim Wolgemuth At 02:22 PM 9/1/00 +0000, you wrote:Tim Wolgemuth wrote:-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.netRemoving the "\n" did not change anything. Here is what phpinfo() showed about the mail program: Extensions (section)Sendmail Path to sendmail: /var/qmail/bin/sendmailConfiguration (section)sendmail_path /var/qmail/bin/sendmail/var/qmail/bin/sendmailTim Wolgemuth OneMain.com At 10:11 AM 9/1/00 -0400, you wrote:regardsHave you tried removing the '\n'??? What does 'phpinfo();' show you inyou canto your mail program?? Tim Wolgemuth wrote:I have tried removed the "\" from the script. I made not change. I am able to sent from the command prompt. So qmail is working. The disk is not full. Any other suggestions. Tim Wolgemuth At 11:32 AM 9/1/00 +0900, Maxim Maletsky wrote:stafftry to set it as follows: Mail('tim@wolgemuth.cc','test','this is a test message\n'); There's no need to escape from '@' but if you have some other strangethen use single quote (') and it will not parse your string: meansescapehave there anything but not (') which (guess what?) you;ll have toTim, Does mail work with any other scripts? I would write a test script to see if you can get any mail out via php. --with \ Chers! -----Original Message----- From: Tim Wolgemuth [mailto:tim@wolgemuth.cc] Sent: Friday, September 01, 2000 12:55 AM To: php-general@lists.php.net Subject: [PHP] mail() I am having a problem with getting the mail() function to work. Here is the code: Mail("tim\@wolgemuth.cc","test","this is a test message\n"); Here is the error in the error log: qmail-inject: fatal: read error Here is the line in php3.ini:sendmail_path = /var/qmail/bin/sendmailChristopher C.M. Allen http://design.driver8.org/ Email: callen@driver8.org Cell : 1.715.821.4006-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net