Question : Create email is a users Exchange 2010 maibox

Hi,

I am trying to create an application which will create an email for a user in there drafts folder using Exchange web services 2010. I can successfully do this if I am creating it for myself but how can i create the email for someone else. Will I have to log on as them to do it?

Answer : Create email is a users Exchange 2010 maibox

Just in case anyone else needs it i found a solution...

 Dim drafts As DistinguishedFolderIdType = New DistinguishedFolderIdType()

 drafts.Id = DistinguishedFolderIdNameType.drafts
       
   Dim usersbox As EmailAddressType = New EmailAddressType()
    usersbox.EmailAddress = "emailaddress"

   drafts.Mailbox = usersbox
  createItemRequest.SavedItemFolderId.Item = drafts

Once the user running the application or service has access to create mail for that user this should work
Random Solutions  
 
programming4us programming4us