InfiniTec - Henning Krauses Blog

Don't adjust your mind - it's reality that is malfunctioning

Workaround: A status of 409 - conflict is received when adding an attachment to a mail via WebDAV

More Information

The WebDAV protocol can be used to send emails. This can be done by creating the email in a mailbox folder (i.e. the Drafts folder) and moving this item to the ##DavMailSubmissionURI## folder. This is described in this MSDN article: Sending a Message (WebDAV).

Attachments can be either added to this mail using the Outlook Web Access method, or by issuing a PUT, using the address of the mail as folder: If the address of the item is

http://myserver/exchange/jdoe/drafts/new_mail.eml

the url for the PUT command would be something like http://myserver/exchange/jdoe/drafts/new_mail.eml/attachment.zip.

If you created the mail item via the PUT method, instead of a PROPPATCH, you might get a 409  - conflict error when adding attachments to the item.

Solution

A workaround seems to be to issue a PROPPATCH on the mail item itself. The PROPPATCH does not necessarily have to change the item. It's more like a touch command. After this PROPPATCH command, the PUT command for the attachment will be successful.

Status

The status of this problem is unknown.

Posted by Henning Krause on Thursday, April 13, 2006 12:00 AM, last modified on Thursday, April 13, 2006 12:00 PM
Permalink | Post RSSRSS comment feed

Comments (1) -

On 7/5/2008 6:11:54 AM vijay India wrote:

vijay

hi
  i am using webdav for sending email and receving email using my exchange server 2007.email is sending and then receving part is working fine but i am sending email with attachment throught my application using vb.net.i am getting "The remote server returned an error: (409) Conflict." how can i solve this problem. please help!!

thanks
vijayr