|
-
Mar 7th, 2000, 07:09 AM
#1
Thread Starter
New Member
Hi All,
I'm using the following code to play around with
the MAPI control. It keeps crashing on the
MAPISession1.SignOff line. I get the following
error: "Method 'Signoff' of object 'IMapiSession' failed"
Does anyone know why? Can you tell me how to fix this?
Thank you VERY VERY VERY much!
-------
Sean
PS. I'm using Outlook '98
Private Sub cmdSend_click()
Form1.Caption = "Email Utility: SENDING"
MAPISession1.SignOn
MAPIMessages1.SessionID = Me.MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.MsgSubject = "This is the Subject!" 'txtsubject.Text
MAPIMessages1.MsgNoteText = txtMsg.Text
MAPIMessages1.RecipAddress = txtTO.Text
MAPIMessages1.RecipDisplayName = MAPIMessages1.RecipAddress ' Or "John Doe" or whatever
MAPIMessages1.Send
MAPISession1.SignOff
Form1.Caption = "Email Utility: Messege Sent
Successfully!"
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|