mapi thread

K

Keith G Hicks

I have a problem with a customer that uses Groupwise for their email. I'm
using Docmd.SendObject to open up an email message dialog (in an Access 2003
app) that's pre-filled with the recipeint, subject, etc. but the user can
fill in the rest and then hit the send button. This has all worked fine with
GW7. But recently, GW8 has fouled this up. I guess that it opens up the
email somewhat modally so that the user cannot go back to the calling app
until cancelling or sending the message. Kinda sucks. Anyway, the GW people
suggested the following

"A simple workaround to this problem is to spawn a thread to call
MAPISendMail(). The thread will block, but the main UI should not be held
up."

I have no idea how to do this. I've looked into some MAPI examples online
and am not finding what I think will work. Can anyone help me out or point
me in the right direction?

Thanks,

Keith
 
T

Tom van Stiphout

On Wed, 18 Mar 2009 16:53:55 -0400, "Keith G Hicks" <[email protected]>
wrote:

I am assuming you're writing an MsAccess application. Spawning your
own threads is a VERY ADVANCED topic that mere mortals should not get
into. I don't mean to be rude, but this is a topic where if you have
to ask the question, you're not qualified. Classic VB and VBA were
never designed for users to do this. So I would call it bad advice
from GW and press them for a STABLE Access sample, or a better
solution.

Alternatives include:
* A specially crafted MAILTO tag
* A (perhaps .NET) helper app that can safely support multithreading

-Tom.
Microsoft Access MVP
 

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