MAPI is hanging up on my computer. I have tried deleting the maip32.dll and copying back from the windows cd to no avail. Can't register the dll either. This is a fairly fresh install of win98 (two weeks old). Any ideas what i can try to get MAPI working?????

I'm using this code found here to test with:

Private Sub Command1_Click()
MAPISession1.SignOn
MAPIMessages1.SessionID = Me.MAPISession1.SessionID
MAPIMessages1.Compose
MAPIMessages1.RecipAddress = "[email protected]"
MAPIMessages1.RecipDisplayName = "Joacim Andersson"
MAPIMessages1.MsgSubject = "Hiya!"
MAPIMessages1.MsgNoteText = "Here's the body of the mail"
MAPIMessages1.Send
MAPISession1.SignOff
End Sub

It hangs at MAPISession1.SignOn. Have to ctrl+alt+del and end task to end it.

Any ideas would be greatly appreciated.