f(Desktop.isDesktopSupported())
{
Desktop top = Desktop.getDesktop();
try {
URI uri = new URI("mailto:abced@qq.com");
top.mail(uri);
} catch (Exception e) {
// TODO: handle exception
}
}
发送email的方法使用swing
