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

email via vfp6

Status
Not open for further replies.

sncheong

Programmer
Jan 18, 2001
47
NZ
i was following advice dd oct23,2000 - see below and i must say that your codes work with eudora under winxp. when i tried the codes with outlook express under win98, i got an "0x800401f3 invalid class string" error.

is there anything that can done to make it work under win98? ta

*******************************************
ChrisRChamberlain (Programmer) Oct 23, 2000
The following code from a command button should enable a user to e-mail directly through MS Outlook Express.

It requires the user to actually send the message from Outlook Express.

Any alternatives that don't require user intervention?

*--
oform = CREATEOBJECT([FORM])

WITH oform
.AddObject([Session1],[oleControl],[MSMAPI.mapiSession])
.AddObject([Message1],[oleControl],[MSMAPI.mapiMessages])
.Session1.Signon
.Message1.sessionid = oform.Session1.sessionid
.Message1.Compose
.Message1.RecipDisplayName = [support@lithoplas.com]
.Message1.AttachmentPathname = [C:\autoexec.bat]
.Message1.msgSubject = [Program error]
.Message1.msgNoteText = [This is a test]
.Message1.Send(1) && Incorrect parameter?
.Session1.Signoff
ENDWITH

RELEASE oform
*--

TIA

Chris
 
chris
sorry i didn't mention that under winxp, it also works with outlook express
cheers
 
sncheong

Which line of code is giving your the error message?

If if is :-

[tab].Message1.Send(1) && Incorrect parameter?

try changing it to

[tab].Message1.Send

which is the equivalent of

[tab].Message1.Send(.F.)

or

[tab].Message1.Send(0)


At the time of that thread, the code would have been running under Win98 SE, but not necessarily the same version of Outlook Express as you are currently using. HTH

Chris [pc2]
 
many tks for replying, chris.
i shall try that after i upgraded the outlook express to version 6. i shall revert wiht the results. ta
 
bad news, chris; it didn't work with outlook express 6. since the error mentioned ole error code, i wonder i need to update the msapi drivers for win98se? can't i just copy them from winxp?
would appreciate your advice. ta
 
Hi All,
Is it because you don't have MAPI installed on your Win98?

I don't think that MAPI is installed by default on Win98. You have to run the set up program and install it.
 
just to echo ChrisCarroll

this message means that you do not have MSMapi32.ocx on your system. Attitude is Everything
 
many tks guys - looking the mapi installation.
sorry chris, it bumped me on the first line.
 
please help!
client's pc is an idot explora 98 w/o the full oem cd. how do i just install mapi? ta
 
sncheong

The MAPI message control and session controls are Activex controls that should have been installed with the application installation. At step #2, you can select the Ativex controls to installed along with the application, they are mot installed with win98. Maybe you can do a re-install of the application to include the 2 activex controls. If not, create a small "dummy" application with just a text fiel as a main file, and do an install on that and include the two activex controls. Mike Gagnon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top