Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with Blat.vcx
Message
From
09/07/2003 18:58:48
 
 
To
09/07/2003 15:39:29
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00807411
Message ID:
00808710
Views:
17
Steven

We use Blat.dll (as we have some VB apps that use blat), and with that we have to provide the name of a server.

Here is the code we use to test:

DECLARE INTEGER Send IN c:\blat\blat.dll STRING cBlatLine

LOCAL lcBodyFile, lcBlatStr, lnBlatResult

lcBodyFile = SYS(2023) + "\" + SYS(2015) + ".tmp"
STRTOFILE("See attached file", lcBodyFile)
lcBlatStr = lcBodyFile + " -server 10.10.1.2"
lcBlatStr = lcBlatStr + " -t recipient@mymailserver.com"
lcBlatStr = lcBlatStr + " -f sender@mymailserver.com"
lcBlatStr = lcBlatStr + ' -subject "Please ignore....This is a test message"'

lnBlatResult = send(lcBlatStr)


Hope this helps


Jason
>Hi Sergey,
>
>I got it here:
>http://www.1amsoftware.com/blatstuff/Bobx%20VFP%20Blat%20Page.htm
>
>I'm using the following:
>
>SET CLASSLIB TO blat.vcx ADDITIVE
>oEMail=CREATEOBJECT("BLAT")
>
>oEMail.cTo = "mytest@mycompany.ca"
>oEMail.cSubject = "Testing BLAT"
>oEMail.cBody = "Message body"
>
>?oEMail.Send()
>
>
>
>It always returns false.
>
>Thanks
>
>>Hi Steven,
>>
>>Where did you get Blat.vcx from and what code you use to send email?
>>
>>>Hi,
>>>
>>>Anyone know how to get the Blat.vcx class to work? I tried the samples provided but I >keep getting a 'can not access file' error message when it tries to access the file it >creates with the message string.
>>>
>>>I'm a newbie at this so any help is greatly appreciated.
>>>
>>>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform