O
Outlook Worm
Hi,
I want to display Check Names Dialog for any email address not present
in Address book. Also i need to customize to CC and BCC buttons on
"Select Names" dialog [i want to get rid of them]. I think CDO is the
option. But when i try to do it behind Outlook Form in vbscript code
like
Function ResolveAllRecipients()
Set objSession = MAPI.Session
strEntryID = Item.EntryID
strStoreID = Item.Parent.StoreID
objSession.Logon "", "", False, False
Set objMsg = objSession.GetMessage(strEntryID, strStoreID)
objMsg.Recepients.Resolve True
ResolveAllRecipients = objMsg.Recepients.Resolve
Set objSession = Nothing
Set objMsg = Nothing
End Function
It fails at MAPI.Session line. Please advise. Also any code sample for
hiding CC and BCC buttons on "Select Names" dialog.
Regards
Khan G
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I want to display Check Names Dialog for any email address not present
in Address book. Also i need to customize to CC and BCC buttons on
"Select Names" dialog [i want to get rid of them]. I think CDO is the
option. But when i try to do it behind Outlook Form in vbscript code
like
Function ResolveAllRecipients()
Set objSession = MAPI.Session
strEntryID = Item.EntryID
strStoreID = Item.Parent.StoreID
objSession.Logon "", "", False, False
Set objMsg = objSession.GetMessage(strEntryID, strStoreID)
objMsg.Recepients.Resolve True
ResolveAllRecipients = objMsg.Recepients.Resolve
Set objSession = Nothing
Set objMsg = Nothing
End Function
It fails at MAPI.Session line. Please advise. Also any code sample for
hiding CC and BCC buttons on "Select Names" dialog.
Regards
Khan G
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!