• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

webdav add attachment

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Outlook Web Access >> webdav add attachment Page: [1]
Login
Message << Older Topic   Newer Topic >>
webdav add attachment - 7.Jul.2010 11:30:13 AM   
tone

 

Posts: 2
Joined: 7.Jul.2010
Status: offline
hi,

im using webdav, httpclient api, to send email to exchange 2007

with the following code i send a message successfully:
String strTempRelativeURI="https://webmail/exchange/user@email.com/Drafts/";

PutMethod pm = new PutMethod ("https://webmail/exchange/user@email.com/Drafts/test5.eml/");
pm.setRequestBody(body);
client.executeMethod(pm);

move(strTempRelativeURI + "test5.EML", strSubRelativeURI, null);


public static void move(String urlOrigem, String urlDest, HttpConnection conn)
throws Exception
{

MoveMethod method = new MoveMethod(urlOrigem, urlDest,true);
try {
int rc = client.executeMethod(method);
System.out.println("Return Code: " + rc);
}

finally {
// release any connection resources used by the method
method.releaseConnection();
}

}

how can send the message with an attachment?


thanks in advance
Post #: 1

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Outlook Web Access >> webdav add attachment Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter