Step one = Build a dos text file.
for this example I'll name it emm.msg
place the TO: , From:, Subject:, CC: BCC:, Attach: lines in it"
Place one blank line in it.
Place the body of the message in ASCII or HTML code.
save the text file
Those functions were written to call Windows API routines. They will work on a Win95 & up platform. How do I know that, Because I wrote them in a FPW2.6 enviroment on a WIN95 computer and I'm still using them today in VFP6 in Win98 & ME.
OK, call it a brain fart, I was reminded we wrote those routines after we converted to VFP3 and they do not work in 2.6. So I stand corrected. so try this
run /n3 "c:\program files\qualcomm\eudora\eudora.exe" c:\temp\emm.msg
David W. Grewe
Dave@internationalbid.com
is this for a user or the e-mail has to actually be sent immediately??
if by a user ...
PRIVATE cFile, hUrl
cFile = SYS(2023) + "\" + SYS(3) + ".url"
IF FILE( m.cFile )
DELETE FILE ( m.cFile )
ENDIF
hUrl = FCREATE( m.cFile )
IF m.hUrl < 0
WAIT WINDOW "Unable to create internet shortcut."
RETURN
ENDIF
= FPUTS ( m.hUrl, "[InternetShortcut]" )
= FWRITE( m.hUrl, "URL=mailto:Sales <sales@domain.com>" )
= FWRITE( m.hUrl, "?subject=Whatever subject you like" )
= FWRITE( m.hUrl, "&body=%0A" )
= FWRITE( m.hUrl, "This is line one of the message%0A" )
= FWRITE( m.hUrl, "This is line two of the message%0A" )
= FFLUSH( m.hUrl )
= FCLOSE( m.hUrl )
RUN /N2 START &cFile
The default e-mail client is now open with this e-mail created ... all the user has to do is click Send!
Steven S
Professional Foxpro developer for DOS/Windows/Unix platforms since 1989.
clogic@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.