If there is no objection to this bandaid to fix bug #7068 (http://bugs.php.net/bugs.php?id=7068) then I will go ahead and apply it. I think the Win32 smtp code needs somewhat of an overhaul in order to properly handle email addresses of the form: "Some User, Jr." <[EMAIL PROTECTED]> Right now, it uses the "," as a delimeter, even though its inside a literal. This patch addresses the issue of a user passing an address in with surrounding <>'s. Index: win32/sendmail.c =================================================================== RCS file: /repository/php4/win32/sendmail.c,v retrieving revision 1.20 diff -u -u -r1.20 sendmail.c --- win32/sendmail.c 2000/09/05 00:26:15 1.20 +++ win32/sendmail.c 2001/02/01 19:35:18 @@ -242,7 +242,11 @@ token = strtok(tempMailTo, ","); while(token != NULL) { - sprintf(Buffer, "RCPT TO:<%s>\r\n", token); + if (strchr(token,'<') && strchr(token,'>')) + sprintf(Buffer, "RCPT TO:%s\r\n", token); + else + sprintf(Buffer, "RCPT TO:<%s>\r\n", token); + if ((res = Post(Buffer)) != SUCCESS) return (res); if ((res = Ack()) != SUCCESS) @@ -259,7 +263,11 @@ token = strtok(tempMailTo, ","); while(token != NULL) { - sprintf(Buffer, "RCPT TO:<%s>\r\n", token); + if (strchr(token,'<') && strchr(token,'>')) + sprintf(Buffer, "RCPT TO:%s\r\n", token); + else + sprintf(Buffer, "RCPT TO:<%s>\r\n", token); + if ((res = Post(Buffer)) != SUCCESS) return (res); if ((res = Ack()) != SUCCESS) -- =================================================================== Sean Bright [EMAIL PROTECTED] / [EMAIL PROTECTED] / http://www.seanbright.com/ =================================================================== -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]