1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 11:12:22 -05:00

SMTP: switching back to Draft then send mode over DAV for calendar messages

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1425 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-09-06 21:20:57 +00:00
parent 6c62dbc2af
commit f944efe43d

View File

@ -2182,10 +2182,8 @@ public class DavExchangeSession extends ExchangeSession {
*/
@Override
public void sendMessage(byte[] messageBody) throws IOException {
String messageName = UUID.randomUUID().toString() + ".EML";
try {
createMessage(SENDMSG, messageName, null, new MimeMessage(null, new SharedByteArrayInputStream(messageBody)));
sendMessage(new MimeMessage(null, new SharedByteArrayInputStream(messageBody)));
} catch (MessagingException e) {
throw new IOException(e.getMessage());
}