Craig,
you must include file name containing spaces in double quotes when used as blat first argument.
>Andrus,
>
>I could have sworn I tested this over a year ago and had to use the GetShortPath() in order to handle paths and/or file names that contained spaces. I will re-test, and thank you for the heads up.
>
>>Craig,
>>
>>Why you used
>> lcBlatParam = GetShortPath(lcBodyFile)
>>
>>in blat code ?
>>
>>blat works well with long windows path names !
>>>Yes, you can get the code for this and many other ways of emailing from my blog...
>>>
SPS Weblog>>>
My Entry Regarding BLAT>>>
>>>
>>>>Has anyone ever used BLAT for (a freeware .DLL that can be used for sending email) sending email messages from VFP. I'm using it but I'm having trouble getting it to send attachments. I was wondering if anyone could share the proper syntax to code something like this in VFP?
>>>>
>>>>Thanks,
>>>>Don
Andrus