Local m.string,m.mail,m.subj,m.file
m.mail = "***@invalid.com"
m.subj = "testing"
m.file = "d:\test.txt"
m.string = "mailto:" + ;
m.Mail + ;
"?subject=" + Alltrim(m.subj) + ;
"&body=" + strtran(strtran(Filetostr(m.file),chr(13),"%0D"),chr(10),"%0A")
Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd
=ShellExecute(0, "Open" , m.string , "" , "" , 0 )
Leonid
Post by alkotsHi Rolf
It almost worked
but, it doesn't respect carriage return
Everything is worte in a long line
Any suggestion ?
Alberto
Post by Rolf LystadPost by alkotsVFP6 SP5 WINDOWS ALL
I'm using mailto to send emails, and I need put a txt/asc file as body of
email.
Local m.string,m.mail,m.subj,m.file
m.subj = "testing"
m.file = "d:\test.txt"
m.string = "mailto:" + ;
m.Mail + ;
"?subject=" + Alltrim(m.subj) + ;
"&body=" + Filetostr(m.file)
Declare Integer ShellExecute In "Shell32.dll" ;
INTEGER HWnd, ;
STRING lpVerb, ;
STRING lpFile, ;
STRING lpParameters, ;
STRING lpDirectory, ;
LONG nShowCmd
=ShellExecute(0, "Open" , m.string , "" , "" , 0 )