{{tag>category:"OpenInsight 32-Bit" author:"Rudhy B" author:"Revelation Software Technical Support" author:"Pascal Landry" author:"Paul Simonsen"}}
[[https://www.revelation.com/the-works|Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community]]
==== OIMAPI02 (OpenInsight 32-Bit) ====
=== At 16 DEC 2002 09:37:36AM Rudhy B wrote: ===
I tried to use the following:
Flags='
if MAPISendMail(0, 0, Flags, Message) then
Msg(@window, "Message sent successfully!")
end else
Get_Status(ErrMsg)
Msg(@window, ErrMsg)
end
But I got OIMAPI02:General Failure. What does it mean ?
I already set my OE6 not to warn me when other applications try to send mail as me.
Thanks,
Rudhy
----
=== At 16 DEC 2002 10:19AM Revelation Software Technical Support wrote: ===
Rudhy-
You have already done a MapiLogon?
----
=== At 17 DEC 2002 08:17AM Rudhy B wrote: ===
I put
status=MAPILogon(session)
and status returns 1. But i still got OIMAPI02 error.
Rudhy
----
=== At 19 DEC 2002 02:39PM Pascal Landry wrote: ===
You wrote: I already set my OE6 not to warn me when other applications try to send mail as me.
Is there a way of turning that message off, if so, how?
Pascal
----
=== At 19 DEC 2002 04:57PM Paul Simonsen wrote: ===
Rudhy,
I'm not sure about Outlook Express 6, but we are using Outlook 2002. In prior versions we were able to have Outlook automatically send the emails, but with the newer version we receive a popup messagebox stating "Another program is trying to send an email, do you want to allow it? Yes/No"
Initially we were able to find a work around to this. I believe Microsoft had to put this in place due to all the virus' running about auto sending emails. However, I did find a program at:
http://www.express-soft.com/mailmate/clickyes.html
that sits in your system tray and will simulate clicking the "Yes" button when the message popups. So now we can have a web server that OI can auto-send emails on.
I'm not sure about OE6, but you might also receive the message if you change the flags variable in your example to equal MAPI_DIALOG$ (from the MAPI_EQUATES). If this works, then the ClickYes program might help you too.
Hope this helps,
psimonsen@srpcs.com
[url=http://www.srpcs.com]SRP Computer Solutions, Inc.[/url]
[img]http://www.srpcs.com/srpicon1.gif[/img]
----
=== At 20 DEC 2002 12:20PM Rudhy B wrote: ===
Well to turn off the warning in OE6, go to Option -] Security. The option is under the Virus Protection.
But I still can't get the email send automatically. It gives me OIMAPI02 error.
Rudhy
----
=== At 20 DEC 2002 02:13PM Pascal Landry wrote: ===
Rudhy,
Try hardcoding a from address in your routine, ie
message=youremail@yourdomain.com
or your message=youremail@yourdomain.com might be blank.
I just got the OIMAPI02 error omiting the destination address.
It's worth a try.
Pascal
[[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=WORKS_READ&SUMMARY=1&KEY=4A08C4B8FD31E26885256C91005058EC|View this thread on the Works forum...]]