浏览代码

removed debugging

Luke Ehresman 25 年之前
父节点
当前提交
24c4c6f568
共有 1 个文件被更改,包括 6 次插入7 次删除
  1. 6 7
      functions/smtp.php

+ 6 - 7
functions/smtp.php

@@ -438,15 +438,14 @@
       }
 
       $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 1);
-      sqimap_append ($imap_stream, $sent_folder, $length);
-      write822Header ($imap_stream, $t, $c, $b, $subject);
-      writeBody ($imap_stream, $body); 
-      sqimap_append_done ($imap_stream);
-
+      if (sqimap_mailbox_exists ($imap_stream, $sent_folder)) {
+         sqimap_append ($imap_stream, $sent_folder, $length);
+         write822Header ($imap_stream, $t, $c, $b, $subject);
+         writeBody ($imap_stream, $body); 
+         sqimap_append_done ($imap_stream);
+      }   
 
       // Delete the files uploaded for attaching (if any).
       deleteAttachments();
-
    }
-
 ?>