Colin
It's probably me that you remembered doing something like this
earlier this year.
If neither of the replies so far are what you want, then I
have two VERY simple little apps that do the sending part anyway, using the
components already supplied with D5. (Don't know if they were there in earlier
versions)
One is a console app and is based on an example supplied on
this list (by Mark Derricutt, I think).
The other, I think, is based on an example in Marco Cantu's
book.
Both read stuff from a text file to determine who to send the
email to, the subject line, details of attachments and body lines.
They're very simple but may be enough to get you
going.
Let me know if you want me to send them.
Mark
----- Original Message -----
Sent: Sunday, May 13, 2001 6:47 PM
Subject: RE: [DUG]: Simple email data
transfer
Hi
Collin
If
both PC's are visible via the internet I would use a simple TCP/IP socket
transfer. It is simple to program, robust and flexible. There is
no limit to the number of machines that can access the remote machine(s) and
transfer can be scheduled or on demand.
If
you want a simple example see the Delphi Chat demo, though there are also
several third party components which can do more.
HTH
Stephen
Hi all,
For a remote monitoring application I need to
transfer a small amount (1-2k) of binary data between two computers from
time to time. I seem to remember another DUG member doing a similar thing
but cannot find the reference.
I suspect that the solution involved using a
MIME e-mail transfer in either direction. In one instance I would need to
email the remote PC and have it respond with the data I require, dependant
on the nature of a command sent. In another case the remote PC would
automatically send data (randomly without a request) when a certain
condition existed .
At either PC I therefore need a simple SMPT
program to send a message and a background POP3 task to detect an email from
the remote PC and make the data available. The PCs will need to
connect via PSTN and ISP and the WWW.
I want to incorporate the above process into an
existing D3 program but don't want to re-invent the wheel.
Please can anyone point me to suitable code or
a better/simpler method.
Cheers
|