commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Baranski" <list-subscripti...@secmgmt.com>
Subject [Email] Mailcap changes causing a send() to hang
Date Tue, 12 Jan 2010 16:25:35 GMT
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-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message