#19822 [Fbk->NoF]: Server error using mail() function and ISAPI

From: Date: Sat, 26 Oct 2002 06:00:09 +0000
Subject: #19822 [Fbk->NoF]: Server error using mail() function and ISAPI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23357@lists.php.net to get a copy of this message
ID: 19822 Updated by: php-bugs@lists.php.net Reported By: logico@avantel.net -Status: Feedback +Status: No Feedback Bug Type: IIS related Operating System: Windows 2000 Server SP3 PHP Version: 4.2.3 New Comment: No feedback was provided for this bug for over 2 weeks, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". Previous Comments: ------------------------------------------------------------------------ [2002-10-10 10:39:14] mfischer@php.net You are using "\n" instead of "\r\n". The page http://cr.yp.to/docs/smtplf.html exactly describes this issue. One thing which bothers me is that actually PHPs sendmail code should take care of this issue. Can you post an url pointing to the minimal sourcecode you're trying to send? Also which SMTP are you using (can I use it for testing too) ? ------------------------------------------------------------------------ [2002-10-10 10:33:40] logico@avantel.net Thank you! using the snap shot actually helped me out a little bit, right now I know the problem: Warning: mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in D:\Web\phpcollab\mail.php on line 3 But now I need to know how to solve it!, I've been using PHP for a while and this is the first this happens to me, so I suppose that is a Win2k SP3 IIS problem. Thank you in advance! ------------------------------------------------------------------------ [2002-10-10 02:36:36] mfischer@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-latest.zip The latest NON-STABLE snapshot contains a more improved error handling so instead of the useless "server error" you will get the real error message from the server. Looking briefly at your line I think you're either missing an SMTP directive or the "sendmail_from" directive which both are required for Win32. ------------------------------------------------------------------------ [2002-10-08 17:22:22] sniper@php.net Are you sure your php.ini file is read by PHP? Check from the phpinfo() output to what value SMTP is set. ------------------------------------------------------------------------ [2002-10-08 15:49:07] logico@avantel.net Thank you for replying! That's not the problem because go the the cmd and type: telnet smtp.uservers.net 25 And it connects perfectly, I can do all the HELO, TO, RCPT, etc... and it works without a problem ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/19822 -- Edit this bug report at http://bugs.php.net/?id=19822&edit=1

« previous php.bugs (#23357) next »