msoe.dll - SendMailWithOE

R

Rick A

checking www.deja.com I found this thread from June of 2005.
http://groups.google.com/group/micr...oe.dll+SendMailWithOE&rnum=2#0d9448fdd6501af7

It's the exact same issue I'm faced with right now. The thread ends and no
solution is given but the two people talking seemed real close.

Does anyone know if there was a solution?

Does anyone know the answer to the question "Do you have any idea what a
return code of "2" means?".

Here a snippet from the thread.
------------------------------------------------------------------------------
My client gets a return code of "2" when SendMailWithOE (msoe.dll) runs.
I had him send me a screen-shot from "About Outlook Express" and see
that his level of msoe.dll is identical to mine, both current levels of SP2.

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.
 
D

Douglas J. Steele

As Dirk suggested in that thread, it boils down to the call to the
MAPISendMail function.

According to
http://msdn.microsoft.com/library/en-us/mapi/html/4cb46e35-cd8f-4c6a-9a10-2a3f63e84ecd.asp
that function returns one of:

MAPI_E_AMBIGUOUS_RECIPIENT
MAPI_E_ATTACHMENT_NOT_FOUND
MAPI_E_ATTACHMENT_OPEN_FAILURE
MAPI_E_FAILURE
MAPI_E_INSUFFICIENT_MEMORY
MAPI_E_LOGIN_FAILURE
MAPI_E_TEXT_TOO_LARGE
MAPI_E_TOO_MANY_FILES
MAPI_E_TOO_MANY_RECIPIENTS
MAPI_E_UNKNOWN_RECIPIENT
MAPI_E_USER_ABORT
SUCCESS_SUCCESS

A quick search found the numeric values for those constants in
http://support.microsoft.com/?id=163216 A value of 2 corresponds to
"MAPI_E_FAILURE", which the first reference above explains as "One or more
unspecified errors occurred. No message was sent." In other words, it's
essentially a "something went wrong, but I don't know what" error.
 
R

Rick A

Yippee!!

That helps a lot. NOT!! It's not your fault I'm just venting.

How do I get to the bottom of an unspecified error? The customer is going
to quit using my Access program because email will not work but it's not the
program. Or is it? I used "DoCmd.SendObject acSendReport" and it worked
but I could not do attachments.

The obvious question, is there anyway to figure out what is unspecified?

Or is there something that I can use for email? I cannot use Outlook.

Thanks,

Rick
---------------------------
 
R

Rick A

Doug,

Thanks for the link. I've reviewed and re-reviewed everything on Tony's
site. There is a lot of good stuff there that's for sure.

I've even looked into the program from Klaus Oberdalhoff. The issue I had
is the translation of German into English. If someone has done translated
the program I would be very interested in the outcome. I've tired to do it
using German to English translation tools on the web but quit after a
fashion because many literal translations end up being useless.

Thanks,
 
D

Douglas J. Steele

Wouldn't it just be the comments that are in German? Should the code work?

Did you look at CDO?
 
R

Rick A

Well, some of the words used in the code are in German and many of the
"error/warning/user" messages are displayed in German. By the way, it's a
wonderful piece of code. I've studied it at length just never used it
because of the German language barrier. If for any reason I wanted to make
a change I felt uncomfortable because I did not know what a certain word or
comment was telling me.

I have not looked into CDO? Would that be better than Outlook Express? Are
there any gotcha's with CDO?
 
D

Douglas J. Steele

As I said earlier, I don't write mail-enabled applications. However, I've
heard good things about CDO, and how simple it is to use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top