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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MAPI.Session

Status
Not open for further replies.

Kurjo

Programmer
May 13, 2003
67
US
I am trying to use tip#faq184-1769 - sending email using the Mapi and I am getting the error 'Class Defenition MAPI.Session not found' when the line of code CREATEOBJECT("MAPI.Session") runs.

I am using VFP 7 in XP. The file MAPI32.DLL exists in system32 directory.

 
ProgrammerK

The code requires to have CDO (CDOSYS.DLL) installed on your computer. Is it?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
I have CDOSYS.DLL in windows system32 directory and I386 directory. Still I am getting the error message "Class Defenition MAPI.Session not found" when CREATEOBJECT("MAPI.Session")
 
ProgammerK

Try this, to see if it throws an error:
Code:
oMSG = CREATEOBJECT("cdo.message")
oMSG.To = "me@nowhere.com"
oMSG.From = "me"
oMSG.Subject = "Hello Email"
oMSG.TextBody = "This is an easy way to create an email"
oMSG.Send()

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
For MAPI.Session you have to have cdo.sys on your computer.
 
bon011

For MAPI.Session you have to have cdo.sys on your computer.

I believe you mean CDOSYS.DLL.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top