AndrewDBrown
8 years ago
I need to be able to create folders within the mailboxes of our clients. Most are using Exchange, which is where I need a bit of help. I see in the help tools you mention using the following: Imap4Folder.EWSPublicRoot. However, I have tried this and cannot get it to work. Here is a copy of the test code, but could you show me how/where to add the .EWSPublicRoot string.

Dim oFolder As EAGetMailObjLib.Imap4Folder
Set oFolder = oClient.CreateFolder(Nothing, "Test Folder")
If oServer.Protocol = MailServerImap4 Then
If Not oFolder.Subscribed Then
oClient.SubscribeFolder oFolder
End If
End If

Thanks as always.
ivan
  • ivan
  • 100% (Exalted)
  • Administration
8 years ago
Hi, what error did you get?

If you want to create mail folder in exchange server, you should connect it as EWS or IMAP4 protocol.
Imap4Folder.EWSPublicRoot is a special folder for public folder of exchange server, but it is not implemented in ActiveX Object. If you only need to create folder in specific user folder, you don't have to use it.

Please refer to imap_full.vb6 sample in installation path, it demonstrates how to connect, create/delete/rename folder in Exchange server by EWS or Imap4 protocol.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.