Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI Errors

Status
Not open for further replies.

csjoseph

MIS
Joined
Jan 2, 2001
Messages
247
Location
US
I am having problems with my MAPI controls. This worked fine up until a week ago. Nothing has changed since then.
The numbers are in the code for example only.

Here is how it goes down.
Users starts app.
Send email
This error happens executing line: 7
Error 32026 MAPIMessages, Not supported
Try to send again.
This error happens executing line: 1
Error 32050 MAPISession, Logon failure: valid session ID already exists

Each time they try they get 32050. If they exit the app and restart then they get 32026 the first time and 32050 again, etc....


-Code-
1 .MAPISession1.SignOn 'connect to exchange server
2 .MAPIMessages1.SessionID = .MAPISession1.SessionID
3 .MAPIMessages1.Compose
4 .MAPIMessages1.RecipDisplayName = strTO
5 .MAPIMessages1.MsgSubject = strSubject
6 .MAPIMessages1.MsgNoteText = strMessage
7 .MAPIMessages1.ResolveName
8 .MAPIMessages1.Send
9 .MAPISession1.SignOff
-END Code-


I can not find any info on this anywhere. Please help.

Thanks in advance. Chris
LAN Administrator
cjoseph@hdii.com
Liberate your mind
 
I've found that I need a DoEvents after MapiSession.SignOn

You may also need some error trapping, since when your program errors at line 7, it will leave the session open unless you find a way of closing it (like closing the program down and restarting)
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top