E
Elliot M. Rodriguez
I'm attempting to use automation with Outlook 2000 (version 9 object
library) via VB.Net.
In trying to add receipients to my MailItem's Recipients collection, my code
simply hangs. It does not throw an error. I am able to set other properties
of the object prior to the call, and I am lost as to why this one in
particular just fails.
My project contains the proper references to Interop.Outlook . Can anyone
please help?
objOutlook = New Outlook.Application
objOutlook.Session.Logon(Me.ProfileName)
objMailItem = objOutlook.CreateItem(Outlook.OlItemType.olMailItem)
objAttachment = objMailItem.Attachments.Add(filepath)
objRecip = objMailItem.Recipients.Add(Recipient) 'hangs here.
objRecip.Type = 1
thanks in advance for your help.
library) via VB.Net.
In trying to add receipients to my MailItem's Recipients collection, my code
simply hangs. It does not throw an error. I am able to set other properties
of the object prior to the call, and I am lost as to why this one in
particular just fails.
My project contains the proper references to Interop.Outlook . Can anyone
please help?
objOutlook = New Outlook.Application
objOutlook.Session.Logon(Me.ProfileName)
objMailItem = objOutlook.CreateItem(Outlook.OlItemType.olMailItem)
objAttachment = objMailItem.Attachments.Add(filepath)
objRecip = objMailItem.Recipients.Add(Recipient) 'hangs here.
objRecip.Type = 1
thanks in advance for your help.