[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1
Hello, On 11/15/2004 05:52 AM, Chris W wrote: I have a PHP script to send an email that I know is correct. Ever since I installed SUSE 9.1I get a no recipient error from postfix. I know others have had this problem but after an extensive search I can find no solution. As of yet no one seems to know, or is not willing to tell how to fix this config problem that SUSE screwed up when they released 9.1. I have also heard it is still a problem in 9.2 as well. So here is some incentive, I will send $25 via paypal to the first person who can tell me how to fix this. BTW using some other mail function that isn't part of the core PHP isn't a solution. If you want to see the error on your own SUSE 9.1 install just run the PHP test mail program and look at the mail logs. ?php $message = This is a Test Message ; mail('[EMAIL PROTECTED]', test message, $message); ? I already suggested that it may be a problem in your PHP configuration. However, since you did not show your php.ini file it is hard to help without further cooperation from you. I also suggested that you try this class that comes with a wrapper function named sendmail_mail(). It emulates mail() function except that it sends the message directly to Postfix sendmail emulation wrapper. I know that you do not want to use anything that isn't part of the core PHP, but at least trying this class you will be able to tell whether it is a PHP problem or a Postfix problem depending on whether the class function works or not. BTW, keep your change, but if you want help, you need to help us helping you. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1
Manuel Lemos wrote: I already suggested that it may be a problem in your PHP configuration. However, since you did not show your php.ini file it is hard to help without further cooperation from you. Yes you did but I don't remember you asking to se the php.ini file. It is a rather large file, you don't what to see the whole thing do you? Here are the only lines I can find that have to do with mail. [mail function] ; For Win32 only. ;SMTP = localhost ; For Win32 only. ;sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path = /usr/sbin/sendmail And maybe these lines ; overload(replace) single byte functions by mbstring functions. ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(), ; etc. Possible values are 0,1,2,4 or combination of them. ; For example, 7 for overload everything. ; 0: No overload ; 1: Overload mail() function ; 2: Overload str*() functions ; 4: Overload ereg*() functions ;mbstring.func_overload = 0 -- Chris W Bring Back the HP 15C http://hp15c.org Not getting the gifts you want? The Wish Zone can help. http://thewishzone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1
Hello, On 11/15/2004 02:34 PM, Chris W wrote: I already suggested that it may be a problem in your PHP configuration. However, since you did not show your php.ini file it is hard to help without further cooperation from you. Yes you did but I don't remember you asking to se the php.ini file. It I said: It is hard to guess it right without seeing the actual configuration. is a rather large file, you don't what to see the whole thing do you? Here are the only lines I can find that have to do with mail. [mail function] ; For Win32 only. ;SMTP = localhost ; For Win32 only. ;sendmail_from = [EMAIL PROTECTED] ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path = /usr/sbin/sendmail I think your problem is that the -t switch is missing. That would make sendmail read the addresses from the message headers, which seems to be the problem. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1
Manuel Lemos wrote: Yes you did but I don't remember you asking to se the php.ini file. It I said: It is hard to guess it right without seeing the actual configuration. I guess I missed that part, while looking into the other code you mentioned in your post. ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path = /usr/sbin/sendmail I think your problem is that the -t switch is missing. That would make sendmail read the addresses from the message headers, which seems to be the problem. That appears to have fixed that problem. I am confused as to why you needed to see that one line of the php.ini file before you could make the suggestion to add the -t. Now that I Know what the -t option is for, that would be the first thing I would suggest if I hear of someone getting the same errors. Any way thanks for the help. Chris W Gift Giving Made Easy Get the gifts you want give the gifts they want this holiday season http://thewishzone.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP postfix mail problem no recipient problem on SUSE 9.1
Hello, On 11/15/2004 06:25 PM, Chris W wrote: ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path = /usr/sbin/sendmail I think your problem is that the -t switch is missing. That would make sendmail read the addresses from the message headers, which seems to be the problem. That appears to have fixed that problem. I am confused as to why you needed to see that one line of the php.ini file before you could make the suggestion to add the -t. Now that I Know what the -t option is for, that would be the first thing I would suggest if I hear of someone getting the same errors. Any way thanks for the help. Actually, I only realized that -t or -i could be missing after noticing that is what the default value mentioned in the comment line above. I recall somebody complaining about a similar problem and somebody else suggesting that the php.ini needed to be fixed but I do not remember anybody mentioning explicitly that -t was important. Anyway, the mail() function is prone to many problems that may or may not be due to configuration problems other than this that you only know what may be the reason only you pass by the problems. Personally I avoid using the mail() function because of these headaches and use my own classes that inject messages directly the local MTA queue so I do not have to wonder much. -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php