+2002-02-16  Kenichi OKADA  <okada@opaopa.org>
+
+       * wl-draft.el (wl-draft-send-mail-with-smtp): Check error.
+
 2002-02-15  Daiki Ueno  <ueno@unixuser.org>
 
        * wl-demo.el (wl-demo-insert-image): Don't touch the specifiers
 
                    (error
                     (wl-draft-write-sendlog 'failed 'smtp smtp-server
                                             recipients id)
-                    (if (/= (nth 1 err) 334)
+                    (if (and (eq (car err) 'smtp-response-error)
+                             (/= (nth 1 err) 334))
                         (elmo-remove-passwd
                          (wl-smtp-password-key
                           smtp-sasl-user-name