|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-06-29 14:59 UTC] jim at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 04:00:01 2025 UTC |
(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