Mathias Tausig: > Am Donnerstag, den 10.09.2009, 10:18 -0400 schrieb Wietse Venema: > [...] > > This is an output buffering problem. You need to flush output > > after each reply, perhaps by calling the flush() function. > > > > Hy! > > No, I am afraid that this is not the problem. > > I am sendig you a few details of my setup > > Here is my php script test.php: > <?php > error_reporting(E_ALL); > fprintf(STDOUT, "220 localhost SMTP foo test\n");
According to the SMTP protocol spec (RFC 5321), SMTP terminates lines with <CR><LF>, not with newline characters. And it has other features, such as multi-line replies, and magical handling of lines beginning with the "." character, that you should be aware of when before writing SMTP software. Wietse