Bug #1622: solution of mail() function problem

From: Date: Tue, 29 Jun 1999 08:50:20 +0000
Subject: Bug #1622: solution of mail() function problem
Groups: php.dev 
Request: Send a blank email to php-dev+get-7795@lists.php.net to get a copy of this message
From: sagawa@sohgoh.net Operating system: Win32 PHP version: 3.0.11 PHP Bug Type: Misbehaving function Bug description: solution of mail() function problem (I'm Japanese not English Speaker, so there is many incorrect. I'm sorry. ;-( ) Hello, Here is "solution of mail() funtion problem". --1-- In sendmail.c, there is "\n" instead of "\r\n". Quote from RFC #821. There are MAIL <SP> FROM:<reverse-path> <CRLF> RCPT <SP> TO:<forward-path> <CRLF> HELO <SP> <domain> <CRLF> QUIT <CRLF> and so on... For exsample, ==================================================== Line 164: Post("QUIT\n"); --> Post ("QUIT\r\n"); Line 224: sprintf(GLOBAL(Buffer), "HELO %s\n", ... v sprintf(GLOBAL(Buffer), "HELO %s\r\n", ... etc... ==================================================== This is cause of these Win32 mail() function bug,I think. --2-- Only ".\r\n" line in body, It works DATA ends,and ... It should write two dotts,shouldn't it? Thank you. I'm looking foward fixed version. -------------------- Akihiro SAGAWA sagawa@sohgoh.net

« previous php.dev (#7795) next »