The first gives the same error after the CreateItem code, as long as Outlook is not open. The second puts the mail into my outbox.
My code used to work, so it has something to do with how my machine is set up now. Could it be related to anti-virus software?
>Did you test the two examples of code I posted? do either work?
>
>>The error is after my second line of code in my example.
>>
>>>Do you receive the error after the two lines you posted? After those two lines, you need to set a name or distribution list, etc before sending otherwise it returns an OLE IDispatch exception code 4096.
>>>
>>>
>>>
>>>
>>>>The following code is generating an error:
>>>>
>>>>loOutlook=CREATEOBJECT('outlook.application')
>>>>loMessage = loOutlook.createitem(0)
>>>>
>>>>
>>>>I have Outlook 2003. The error is "OLE IDispatch exception code 4096 from Microsoft Office Outlook: The operation failed..."
>>>>
>>>>Any ideas?
Elyse Pomerantz