Hi Tamar,
I tried and put your line of code, and works ok. in the site that before did not work.
Thanks, with this line you solved my problem.
>>Hi all,
>>I was developing an automation of mail with Outlook 2000, all was at least ok in my PC, but when I try this app in a client gives this error:
>>
>>Ole idispatch exception code 4096 from microsoft outlook : No se puede enviar este elemento.
>>
>
>After the CreateObject line, add a line like this:
>
>oNS = o.GetNameSpace("MAPI")
>
>You always need this line when you're working with the Outlook Automation server.
>
>Tamar
Carlos Etcheverry
Monte Grande
Buenos Aires
Argentina
Es mejor un mal dia de pesca que un buen dia de trabajo!