Bill,
There is a blat DLL which you can simply call from VFP:

***************
* Start of Code
*
lcDll = "blat.dll"
DECLARE INTEGER Send IN (lcDll) STRING blatstring

cTemp_File="c:\attachment.txt"
cFrom=Alltrim("[EMAIL PROTECTED]")
cMessage="Message From Blat"
cSMTP="192.168.1.3"
cSubject="Message Form BLAT"
cSend_To="[EMAIL PROTECTED]"

* Format of the Blat string
*!!!'c:\temp\body.txt -t [EMAIL PROTECTED] -s "e-mail subject" -f '
*!!!+'[EMAIL PROTECTED] -server smtp.wherever.com -attach c:\file.txt'

lcCmd = cTemp_File ;
  +' -t '+cSend_To ;
  +' -s '+'"'+cSubject +'"';
  +' -f '+ cFrom ;
  +' -server '+cSMTP

lnResult = Send(lcCmd)

if lnResault<>0
  =MessageBox("Email Send Error")
Endif
*
* End of Code
**************

The only warning is that you have to be careful about spacing in the command
line lcCmd as Blat will barf if you get the spacing wrong.

Dave Crozier

----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Bill Kressbach
Sent: 10 October 2007 11:11
To: [email protected]
Subject: Re: Email confusion

Well I do use Blat with some software but somehow it just bothers me that 
you have to drop into DOS to use it.  I'm using this software with students 
learning radio.  It notifies me of a silence detect on the station.  Those 
DOS screens flashing could cause a student to be even more confused than 
they already are.

Bill


> Why don't you simplify he entire process and use BLAT
> Sytze




[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to