Any ideas on how to find the point of failure?
Thanks,
Bill
Bill, are you sure the mail was not actually sent? Since the code is
hard-coded to use the Outlook Express DLL, at "c:\program files\outlook
express\msoe.dll", I don't see how it could fail to do so if that DLL is
installed at that location. However, that e-mail will not appear in
Outlook, because it wasn't sent using Outlook.
--
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
I've asked the user to send me sceen-shots of the confirmation
window display plus another screen-shot of an XP search for
the msoe.dll.
I Googled for additional documentation on SendMailWithOE in
the hopes of finding some comments regarding possible problems
and how to solve them, but I didn't find any such information.
I'm racking my brain has to how I might trap the process to
look at what might be causing the failure, but it's all a "Black-Box"
to me.
Bill
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:eoUqPBR...@TK2MSFTNGP10.phx.gbl...
User in fact has msoe.dll, as required. The screen-shots sent
do not give the slightest hint as to what might be the difficulty,
i.e., everything looks as normal as one would expect.
When I run the function on my machine, I get the OE outbox
progress bar as the e-mail gets sent out. My user doesn't see
anything like that.
I'm clueless as to what to ask of him now.
Let me know if anything pops into your mind that I might try.
Thanks,
Bill
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:eoUqPBR...@TK2MSFTNGP10.phx.gbl...
I just set my default mail client to Outlook and ran a test of the
SendMailWithOE procedure, and it send the mail successfully using
Outlook Express. So that argues against the basic problem having to do
with the default mail client not being OE. Possibly your client has a
firewall set up that blocks Outlook Express? Or some other security
setting that does it? Can the client open Outlook Express directly,
create a message, and send it successfully, without replying to any
other security dialog?
One thing you could check programmatically is the return code from the
call to MAPISendMail. The version of the module I have doesn't check
that, but you could modify it so that the call is like this:
lngRC = MAPISendMail(0, 0, Message, 0, 0)
If lngRC <> 0 Then
MsgBox "Error sending mail -- return code is " & lngRC, _
vbExclamation, "SendMail Error"
End If
That might -- or might not -- tell you something.
Note that you have to declare lngRC:
Dim lngRC As Long
He travels a lot, so I never know when I'll get a response. With
that, you might just flag this thread until you hear back from me, as
I'll post back as soon as I've heard anything.
Bill
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:Ovo1V2cc...@TK2MSFTNGP09.phx.gbl...
I'll keep an eye on this thread.
Do you have any idea what a return code of "2" means?
His system works fine when he creates an e-mail in OE, attaches a file
and sends.
Bill
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:%23KpHhid...@tk2msftngp13.phx.gbl...
This article:
http://support.microsoft.com/kb/119647/
gives what I think are the MAPI error codes, but all it says for code 2
is "MAPI_E_FAILURE", which isn't very helpful, I'm afraid. Beyond that
I have no more information at the moment.
Yes, Eastern. Why do you ask?
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:eBwzCdjc...@tk2msftngp13.phx.gbl...
I've asked the user to disable Norton and try the function again.
Actually, I thought I already had but didn't get a response. I make
sure that test gets done, as Norton sometimes blocks silently.
Bill
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:eeau0cjc...@TK2MSFTNGP15.phx.gbl...
It wouldn't surprise me if the firewall (or maybe antivirus) is blocking
the attempt to send mail, but if the user says it was disabled, it's
hard to argue. I can't think of anything else at the moment.
I'll post back with whatever I hear from him.
Bill
"Dirk Goldgar" <d...@NOdataSPAMgnostics.com> wrote in message
news:OYvPqS1c...@TK2MSFTNGP10.phx.gbl...