1

i have created one application which will send and receive mails, so in that application when i send any mail then it should go to "user created" folder instead of "sent" folder of exchange server2003.

I mean it should directly navigate to "user created" folder from the "outbox", it should not go to "sent" folder from "outbox".

Pardha
  • 395
  • 2
  • 5
  • 12

1 Answers1

0

You need to add the header "Savedestination" to the message.

See http://msdn.microsoft.com/en-us/library/ee178357(v=EXCHG.80).aspx

Henning Krause
  • 5,302
  • 3
  • 24
  • 37
  • HI, i could not understand where to set "savedestination" address as i am using webdav code to send mail. plz specify example – Pardha Sep 28 '11 at 07:35
  • You are using a PUT command to send the message via the special sendmsg-url, right? Put the "savedestination" as a HTTP header in that request. – Henning Krause Sep 28 '11 at 09:19
  • Hi,is it correct? PUTRequest.Headers.Add("Savedestination", "https://" + strServer + "/exchange/" + strAlias + "/Test Sent/"); (Note:- Test Sent is user created folder where i want to store sent mails), but when i use like this...mail send is getting fail – Pardha Sep 28 '11 at 09:55
  • Do you get any error message? Try to use a relative path like "/exchange/username/test sent" or even only "test sent". You also need to set the "Saveinsent" header to "true". – Henning Krause Sep 28 '11 at 10:03
  • Hi, Thanks for your reference, i have achieved the required output as per your suggestions. – Pardha Oct 01 '11 at 12:24