Go to site http://www.geocities.com/toby_korn/blat/ and download
Blat.dll
Copy the dll where u will copy the program below.
This program is same as in the above site only diff is teststring
line.
cserver ='smtp.nmsasap.com'
csubject='"TASK TRACK REPORT"'
cbody = '"THIS IS A REPORT CREATED BY TASK TRACK"'
cto = 'kkhan@nmsasap.com'
cfrom = 'kkhan@nmsasap.com'
cattach = "c:\Mydir\Mydoc.doc"
dll_name="blat.dll"
dll_name=fullpath(dll_name)
DECLARE INTEGER Send in &dll_name STRING blatstring
teststring='- -server &cserver -f &cfrom -t &cto -s &csubject -body
&cbody -base64 -attach &cattach'
result=Send(teststring)
?teststring
?result