shah wrote:
> Hello,
>
> What is the best way to achieve this in VFP.
>
> At end of each day, I need the user to send a re****t file (text file
> with re****t data) to a remote location (remote IP address or a FTP
> site). Emailing as an attachment is not a convient option as some
> servers do not allow any attachments to go through.
>
> I have seen some application where a copy of the data from a local
> machine is directly accessed by a remote application. In the
> Settings.ini a IP address is configured and this allows the
> application to direct the file to that location.
>
> Any ideas if this can be done in VFP.
>
> Thanks in advance
>
> Shah
In unix (perhaps linux as well) there is a way to redirect a
text file to become the body of an email, and achieve this
using a single command line that could be automated as a
crontab function. There's no reason an ordinary ascii text
file ever needs to be sent as an attachment.
If you don't have a unix system handy you can start here:
http://www.hmug.org/man/1/mail.php
If you don't have a unix or linux system available on your
local network you could always get someone to compile gnu's
freely available in source code mail program for your
particular OS.
If you're using windows I've done an automated function
[control panel > Scheduled Tasks] to automatically ftp
data files at a specific time of day. You'll need to
create a batch file to bring up ftp, and a text file
that the batch file reads in order to perform the the
specific sequential functions you'll need. Mine logs
onto a unix system with name and password, cd's to the
desired directory, proclaims binary mode, then mget's
the desired files by name, and forces a disconnect
when the transfer is complete.
That system has been working like a dream for me for
over 5 years.


|