标签: javamail
当我使用以下代码发送批量电子邮件时,在t.sendMessage()被调用时该消息是否会消失?
t.sendMessage()
Transport t = session.getTransport(); t.connect(); try { for(Message m : messages) { m.saveChanges(); t.sendMessage(m, m.getAllRecipients()); } } finally { t.close(); }