Regarding MAPI and Visual Basic

I am using the MAPI controls on a VB form to successfully send email messages. Thanks for the many posts regarding this. My question is: I notice that when the email is sent, it pops up the familiar "connecting, sending message 1 of 1" message, and progress bar right over my form. At this point, is VB waiting? If I have other things going on in the background, will they be halted? I noticed that while this box is up I can't click on any area of the VB screen. Can I make it so this box does not pop up? Also, can I change the default timeout to less than 30 seconds. If our pop3 server isnt working, or the network is down, I don't want the thing to hang that long.
I'm basically trying to send an email at a certain point during a test, and I don't want it hanging there.
Thanks!
Jeff
P.S. Other than that, it works great. I'm using VB6.0 with the MAPI controls and Outlook Express. I couldn't get Microsoft Internet mail to work. We only have internet mail, (no Exchange).
jscharpfAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mackagpCommented:
Have you tried using VBAMAP32.DLL ?
0
mark2150Commented:
Yes. VB is waiting. As far as VB is concerned it is executing a single MAPI "Send" command. And it'll patiently wait until that command completes even if it takes all day.

M
0
mheinCommented:
I have created a Simple Class Module in VB that uses outlook to create the Object, in this case an E-mail.  It spons it off to a ring around the kernel.  This allows your Application to continue running independent of the MAPI Process.  It is very simple, and it works pretty well (w/o Controls I might add)  If the POP Server or whatever Server Type you are using is unavavilable you will still get an error message, but your app will still continue to run unimpeded
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jscharpfAuthor Commented:
This sounds great. Do you have sample code that I could use?

Jeff
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.