Updated changelog and todo, working on saving sent
[squirrelmail.git] / functions / smtp.php
index 5e39ad40e0e936192ed04cb88e0db97778729812..75af97bbe1c477a045e77c7bedd78052e0736c03 100644 (file)
          $body .= stripslashes($passedBody) . "\r\n";
          fputs ($fp, $body);
 
-         $attachmentlenght = attachFiles($fp);
+         $attachmentlength = attachFiles($fp);
 
          $postbody .= "\r\n--".mimeBoundary()."--\r\n\r\n";
          fputs ($fp, $postbody);
 
    function sendMessage($t, $c, $b, $subject, $body) {
       global $useSendmail;
-      global $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress;
+      global $data_dir, $username, $domain, $key, $version, $sent_folder, $imapServerAddress, $imapPort;
 
       if ($useSendmail==true) {  
          $length = sendSendmail($t, $c, $b, $subject, $body);
       // This is a proposed interface to save messages in the sent folder
       //  -- gustavf
       //
-      // $imap_stream = sqimap_login($username, $key, $imapServerAddress, 1);
-      // sqimap_append ($imap_stream, $sent_folder, $length);
-      // write822Header ($imap_stream, .....);
-      // writeBody ($imap_stream, ....);
-      // sqimap_append_done($imap_stream);
+//      $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);
       //
       // Or something like that...