O
OneEDP
In OL2000 I duplicate in VBA a mailitem as follow (both Win 98,ME,XP all SP,
office all SP):
Dim olApplication As Outlook.Application
Dim olNameSpace As Outlook.NameSpace
Dim olMailItem As Variant '!!!!
Dim olCopiedMailItem As Outlook.MailItem
Set olApplication = GetObject(, "Outlook.Application")
on error go to.....
Set olNameSpace = olApplication.GetNamespace("MAPI")
Set olMailItem =
olNameSpace.Folders(1).Folders("MyMimicTemplates").Items("MyIndex").Copy
olMailItem.Move olNameSpace.GetDefaultFolder(olFolderOutbox)
olMilItem.HTMLBody = ........ 'editing
olMailItem.Display
'delete dirty e-mail
Set olCopiedMailItem =
olNameSpace.GetDefaultFolder(olFolderOutbox).Items("MyIndex")
olCopiedMailItem.Delete
....
BUT... in Ol2002 any "glitters" (html, sign, images, etc.) were lost!
Please, help me.
Daniele
office all SP):
Dim olApplication As Outlook.Application
Dim olNameSpace As Outlook.NameSpace
Dim olMailItem As Variant '!!!!
Dim olCopiedMailItem As Outlook.MailItem
Set olApplication = GetObject(, "Outlook.Application")
on error go to.....
Set olNameSpace = olApplication.GetNamespace("MAPI")
Set olMailItem =
olNameSpace.Folders(1).Folders("MyMimicTemplates").Items("MyIndex").Copy
olMailItem.Move olNameSpace.GetDefaultFolder(olFolderOutbox)
olMilItem.HTMLBody = ........ 'editing
olMailItem.Display
'delete dirty e-mail
Set olCopiedMailItem =
olNameSpace.GetDefaultFolder(olFolderOutbox).Items("MyIndex")
olCopiedMailItem.Delete
....
BUT... in Ol2002 any "glitters" (html, sign, images, etc.) were lost!
Please, help me.
Daniele