Dim con As New ADODB.Connection
con.Provider = "MSDAIPP.DSO"
con.Open("http://MyServer/Public/Folder1", "username", "password", -1)
Dim rec As New ADODB.Record
rec.Open("http://MyServer/public/Folder1/MyMessage.eml", con,
ADODB.ConnectModeEnum.adModeReadWrite,
ADODB.RecordCreateOptionsEnum.adCreateNonCollection Or
ADODB.RecordCreateOptionsEnum.adCreateOverwrite,
ADODB.RecordOpenOptionsEnum.adOpenRecordUnspecified)
rec.Fields("DAV:contentclass").Value = "urn:content-classes:message"
rec.Fields("http://schemas.microsoft.com/exchange/outlookmessageclass").Valu
e = "IPM.Note"
rec.Fields("urn:schemas:httpmail:subject").Value = "Test subject"
rec.Fields("urn:schemas:httpmail:textdescription").Value = "Test body"
rec.Fields.Update()
rec.Close()
con.Close()
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.