Who can help me? I want to send automatically without Intervention of the operator an Email from my program with NETEXPRESS 5.1.
I prepare the mail with
invoke MessageObj "SetTo" using PARA-MAIL .
invoke MessageObj "SetSubject" using ASUNTO-MAIL .
invoke messageObj "setHTMLBody" using MENSAJE-O.
with no problems.
invoke messageobj "send".
works perfectly, but only if my OUTLOOK is running previously.
If it is not running I get an OleException.
How can I test if OUTLOOK is running and, if not ,make run any version of OUTLOOK from my program?
I tried
002841 STRING 'START OUTLOOK'
or
002841 STRING 'OUTLOOK'
002844 x"00" DELIMITED BY SIZE
002845 INTO CmdLine,
002846 move 1 to CmdShow,
002852 call winapi "WinExec"
002853 using by reference CmdLine
002854 by value CmdShow
002855 returning CmdStatus.
But receive always a CmdStatus of 512 and OUTLOOK does not Run..
Who can help me?
Thenks
Rolf