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