Browse Source

finally managed to solve the bad Junk after literal output from the
imap-server

stekkel 23 years ago
parent
commit
c6c52f991f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/smtp.php

+ 1 - 1
functions/smtp.php

@@ -193,8 +193,8 @@ function attachFiles ($fp, $session, $rn="\r\n", $checkdot = false) {
                     if (substr($tmp, $tmp_length - strlen($rn), strlen($rn)) != $rn) {
                     if (substr($tmp, $tmp_length - strlen($rn), strlen($rn)) != $rn) {
                         if ($fp) {
                         if ($fp) {
                             fputs($fp, $rn);
                             fputs($fp, $rn);
-			    $length += strlen($rn);
                         }
                         }
+			$length += strlen($rn);
                     }
                     }