Hi Mike, I have no idea what you are trying do ... :-) ...
+) why do you need to tinker with mailcap configuration? +) when it hangs do you have a thread dump Cheers, Siegfried Goeschl Mike Baranski wrote: > I have the following changes to the mailcap settings so I can add > attachments. > > This causes the email's send() method to hang. > > Any ideas? > > MailcapCommandMap mc = > (MailcapCommandMap)CommandMap.getDefaultCommandMap(); > mc.addMailcap("text/html;; > x-java-content-handler=com.sun.mail.handlers.text_html"); > mc.addMailcap("text/xml;; > x-java-content-handler=com.sun.mail.handlers.text_xml"); > mc.addMailcap("text/plain;; > x-java-content-handler=com.sun.mail.handlers.text_plain"); > mc.addMailcap("multipart/*;; > x-java-content-handler=com.sun.mail.handlers.multipart_mixed"); > mc.addMailcap("message/rfc822;; > x-java-content-handler=com.sun.mail.handlers.message_rfc822"); > CommandMap.setDefaultCommandMap(mc); > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@commons.apache.org > For additional commands, e-mail: user-h...@commons.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org