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

How to send email from FPW2.6a

Status
Not open for further replies.

stesvet1

Technical User
Sep 23, 2006
22
0
0
I needed any prg-example how send in FPW2.6a e-mail (I have at home Window XP Prof).

Note: I have this prg-file but it does'nt work - it asked for 6 dll-files and then writes eror: c:\windows\system\mapi.dll is an invalid library or path name.

SET LIBRARY TO SYS(2004) + "FOXTOOLS.FLL" ADDITIVE
GetSysDir = RegFn("GetSystemDirectory","@CI","I")
bigstr = REPLICATE(chr(0),144) &&creates a big string
retlen = CallFn(GetSysDir, @bigstr,144)
winsys = LEFT(bigstr,retlen)
SendMail=RegFn("MAPISendDocuments","L@C@C@CL", ;
"L", winsys+"\MAPI.DLL")
T1=";"
T2="C:\SV\TP.HTM;"
T3=""
X=CallFn(SendMail,0,@T1,@T2,@T3,0)
RELEASE LIBRARY SYS(2004) + "FOXTOOLS.FLL"

*** I copied into WINDOWS/SYSTEM mapi.dll from C:\FPW26\WRKEXT\LIBS\MAPI.DLL
 
If you use this forum's Search tool and look for Email you will find numerous previous postings as well as the suggested approaches.

Good Luck,
JRB-Bldr
 
There is any case or example how sending e-mail from FPW2.6a in this Forum yet

There are only some cases for Visual Foxpro.
 
By using this forum's Search tool and looking for email there are many previous postings on the topic.

You might also do your Search on Blat since this is one tool that is mentioned among all of the other postings.

Good Luck,
JRB-Bldr
 
Whatever I tried to write in search windows on top of the tek-tip screen (i.e. advanced,Find A Forum, Google Custom Search) I did not find an example how send mail from FPW26a.

What do I wrong?

What is Blat?
 
Email within FPD 2.6
thread182-1531139

Send email via Outlook
thread182-1202776



 
Thank you jrbbldr,

but if you see my prg-file it worked in Windows 95 before!
Now, there is something wrong, it asks me for various *.dll.

On the other side, your examples are another case, because I do not want to use other software than FPW26.a.
 
im not sure mapi.dll exists in any windows newer than windows 98... try mapi32.dll

pls let me know if that works =D

Ashthud
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top