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.abcd.com'
csubject='"TASK TRACK REPORT"'
cbody = '"THIS IS A REPORT CREATED BY TASK TRACK"'
cto = 'kkhan@abcd.com'
cfrom = 'kkhan@abcd.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

Re: Blat Working example by Neil

Neil
Mon May 24 16:32:07 CDT 2004

Hi,

Thanks for the example, and glad you're into Blat!. Another couple of
gotchas - like with the csubject line, you also need to put quotes around
the dll_name and cattach values if there are any spaces in the paths. Also,
the cbody shows as an attachment (not the message body) if you use
the -base64 switch.

Regards,
Neil


"Chino Khan" <kkhan@nmsasap.com> wrote in message
news:e1a775fd.0405241207.19a4b57e@posting.google.com...
> 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.abcd.com'
> csubject='"TASK TRACK REPORT"'
> cbody = '"THIS IS A REPORT CREATED BY TASK TRACK"'
> cto = 'kkhan@abcd.com'
> cfrom = 'kkhan@abcd.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