added patch from tcabot for a pure HTML method of selecting all messages
[squirrelmail.git] / src / compose.php
index a8d4045e322ebec342f6a6d798f010843be8f2a6..91d1641492bc5eb37c4b217402db52de5d96c2af 100644 (file)
       }
 
       showInputForm();
+       } else if ($smtpErrors) {
+      $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+      displayPageHeader($color, $mailbox);
+
+      $newmail = true;
+      if ($forward_id && $ent_num)  getAttachments(0);
+              
+      newMail();
+      showInputForm();
+      sqimap_logout($imapConnection);
    } else {
       $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
       displayPageHeader($color, $mailbox);
 
       $newmail = true;
+               
       if ($forward_id && $ent_num)  getAttachments(0);
               
       newMail();