wie kann eine E_Mail (unter Entwürfe) gespeichert statt gesendet werden?
Dim oApp As DvApi32.IApplication
Dim oAccount As DvApi32.Account
Dim oArchive As DvApi32.Archive
Dim oMailItem As DvApi32.MailItem
Dim oAttachment As DvApi32.Attachment
Dim l As Long
Set oApp = CreateObject("DVOBJAPILib.DvISEAPI")
Set oAccount = oApp.Logon("", "", "", "", "", "AUTH")
Set oArchive = oAccount.GetSpecialArchive(DvApi32.DvArchiveTypes.DvArchivePersonalOut)
Set oMailItem = oArchive.NewItem(DvApi32.DvItemTypes.DvEMailItem)
l = oMailItem.Recipients.Add("user@domain.com", "MAIL", "")
oMailItem.Subject = "HTML mail with inline Grafik"
oMailItem.BodyText.HTMLText = "<hmtl><body>That it is<br><img src='cid:myimgcid'></body></html>"
oMailItem.Options.UserHold = True
Set oAttachment = oMailItem.Attachments.Add("c:\\Images\\logo.jpg", "cid:myimgcid")
' oMailItem.Send ' funktioniert
oMailItem.Save ' funktioniert nicht
''''' wie kann eine E_Mail (unter Entwürfe) gespeichert statt gesendet werden?
Set oApp = Nothing
Set oAccount = Nothing
Set oArchive = Nothing
Set oMailItem = Nothing