فهرست منبع

<SPACE> isn't allowed after MAIL FROM: and RCPT TO: (RFC2821)
Thnx Thomas Skyt for spotting this.

stekkel 22 سال پیش
والد
کامیت
fb866a2012
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      class/deliver/Deliver_SMTP.class.php

+ 4 - 4
class/deliver/Deliver_SMTP.class.php

@@ -153,7 +153,7 @@ class Deliver_SMTP extends Deliver {
     }
     }
     
     
 	/* Ok, who is sending the message? */
 	/* Ok, who is sending the message? */
-        fputs($stream, 'MAIL FROM: <'.$from->mailbox.'@'.$from->host.">\r\n");
+        fputs($stream, 'MAIL FROM:<'.$from->mailbox.'@'.$from->host.">\r\n");
         $tmp = fgets($stream, 1024);
         $tmp = fgets($stream, 1024);
 	if ($this->errorCheck($tmp, $stream)) {
 	if ($this->errorCheck($tmp, $stream)) {
     	    return(0);
     	    return(0);
@@ -163,7 +163,7 @@ class Deliver_SMTP extends Deliver {
 	for ($i = 0, $cnt = count($to); $i < $cnt; $i++) {
 	for ($i = 0, $cnt = count($to); $i < $cnt; $i++) {
 	    if (!$to[$i]->host) $to[$i]->host = $domain;
 	    if (!$to[$i]->host) $to[$i]->host = $domain;
 	    if ($to[$i]->mailbox) {
 	    if ($to[$i]->mailbox) {
-    		fputs($stream, 'RCPT TO: <'.$to[$i]->mailbox.'@'.$to[$i]->host.">\r\n");
+    		fputs($stream, 'RCPT TO:<'.$to[$i]->mailbox.'@'.$to[$i]->host.">\r\n");
     		$tmp = fgets($stream, 1024);
     		$tmp = fgets($stream, 1024);
 		if ($this->errorCheck($tmp, $stream)) {
 		if ($this->errorCheck($tmp, $stream)) {
     		    return(0);
     		    return(0);
@@ -174,7 +174,7 @@ class Deliver_SMTP extends Deliver {
 	for ($i = 0, $cnt = count($cc); $i < $cnt; $i++) {	
 	for ($i = 0, $cnt = count($cc); $i < $cnt; $i++) {	
 	    if (!$cc[$i]->host) $cc[$i]->host = $domain;
 	    if (!$cc[$i]->host) $cc[$i]->host = $domain;
 	    if ($cc[$i]->mailbox) {
 	    if ($cc[$i]->mailbox) {
-    		fputs($stream, 'RCPT TO: <'.$cc[$i]->mailbox.'@'.$cc[$i]->host.">\r\n");
+    		fputs($stream, 'RCPT TO:<'.$cc[$i]->mailbox.'@'.$cc[$i]->host.">\r\n");
     		$tmp = fgets($stream, 1024);
     		$tmp = fgets($stream, 1024);
 		if ($this->errorCheck($tmp, $stream)) {
 		if ($this->errorCheck($tmp, $stream)) {
     		    return(0);
     		    return(0);
@@ -185,7 +185,7 @@ class Deliver_SMTP extends Deliver {
 	for ($i = 0, $cnt = count($bcc); $i < $cnt; $i++) {
 	for ($i = 0, $cnt = count($bcc); $i < $cnt; $i++) {
 	    if (!$bcc[$i]->host) $bcc[$i]->host = $domain;
 	    if (!$bcc[$i]->host) $bcc[$i]->host = $domain;
 	    if ($bcc[$i]->mailbox) {
 	    if ($bcc[$i]->mailbox) {
-    		fputs($stream, 'RCPT TO: <'.$bcc[$i]->mailbox.'@'.$bcc[$i]->host.">\r\n");
+    		fputs($stream, 'RCPT TO:<'.$bcc[$i]->mailbox.'@'.$bcc[$i]->host.">\r\n");
     		$tmp = fgets($stream, 1024);
     		$tmp = fgets($stream, 1024);
 		if ($this->errorCheck($tmp, $stream)) {
 		if ($this->errorCheck($tmp, $stream)) {
     		    return(0);
     		    return(0);