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?
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"