S
sentiboy
I am using the following code for sending email through mapi in VS 2005
environment:
Public objSession As New MSMAPI.MAPISession
Public objMessage As New MSMAPI.MAPIMessages
objSession.DownLoadMail = False
objSession.UserName = "MyUsername"
objSession.Password = "MyPassword"
objSession.SignOn()
objMessage.SessionID = objSession.SessionID
objMessage.Compose()
objMessage.RecipAddress = txtTo.Text
objMessage.Text = txtBody.Text
objMessage.Subject = txtSubject.Text
objMessage.Send(True) 'ShowDialog
MsgBox("Message sent successfully!")
objSession.SignOff()
I uninstalled Microsoft Outlook (comes along with msoffice), now my
default client is Outlook Express, I get this exception:
An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
mailclient.exe
Can anybody help me out ?
Regards,
Sentiboy
environment:
Public objSession As New MSMAPI.MAPISession
Public objMessage As New MSMAPI.MAPIMessages
objSession.DownLoadMail = False
objSession.UserName = "MyUsername"
objSession.Password = "MyPassword"
objSession.SignOn()
objMessage.SessionID = objSession.SessionID
objMessage.Compose()
objMessage.RecipAddress = txtTo.Text
objMessage.Text = txtBody.Text
objMessage.Subject = txtSubject.Text
objMessage.Send(True) 'ShowDialog
MsgBox("Message sent successfully!")
objSession.SignOff()
I uninstalled Microsoft Outlook (comes along with msoffice), now my
default client is Outlook Express, I get this exception:
An unhandled exception of type
'System.Runtime.InteropServices.COMException' occurred in
mailclient.exe
Can anybody help me out ?
Regards,
Sentiboy