home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
smtp15.zip
/
readme.txt
< prev
next >
Wrap
Text File
|
2001-08-05
|
4KB
|
126 lines
SMTP - a simple SMTP client for OS/2
------------------------------------
This is a very simple and basic SMTP client, which will take mail
messages (stored one per file) and send them to an SMTP server. It is
designed to work only with my SMTP server, available separately. It is
not sophisticated, but it is small and fast.
All companion programs are available from the same place:
http://www.tavi.co.uk/os2pages/mail.html
Installation
------------
Copy the SMTP.EXE file to any suitable directory which is named in the
system PATH (actually, this isn't strictly necessary but it can make
life easier). Copy the NETLIB.DLL file to any directory on the LIBPATH.
Configuration
-------------
First, ensure that you have a line in CONFIG.SYS of the form:
SET TZ=....
This defines your time zone setting, names, and daylight saving rules.
If you don't have one, you need to add it; the actual value can be quite
complex. For the United Kingdom, the line is:
SET TZ=GMT0BST,3,-1,0,7200,10,-1,0,7200,3600
For other areas, download the TZCALC utility from the same place as this
program. This will work out the correct setting for you. It will be
necessary to reboot in order to pick up this setting, but wait until you
have completed the rest of these instructions.
Now edit CONFIG.SYS, adding a new line of the form:
SET SMTP=directoryname
where 'directoryname' is the name of a directory (which must exist)
where outgoing mail is to be stored.
This step is not strictly necessary, as it is possible to specify this
when the program is started, but it will be necessary anyway for the
SMTP daemon. No other files should be kept in this directory, as ALL
files are treated as potential mail!
It will be necessary to reboot in order to pick up this setting (and the TZ
one if you needed to add it), but wait until you have completed the rest
of these instructions.
Locate the directory described by the ETC environment variable. If you
are not sure, type the command:
SET ETC
at a command prompt. You need take no action, but note that this is
where the logfile (see below) is stored.
Logfile
-------
SMTP maintains a logfile called SMTP.LOG in the ETC directory. This
will grow without bound if not pruned regularly! But it is occasionally
useful....
The spool directory
-------------------
Outgoing mail is taken from the spool directory specified by the SMTP
environment variable.
Files must have a special (but simple) format; the message needs to be
stored "as is", but preceded by lines specifying sender and recipient(s).
This format is generated by the SMTPD server program (available
separately).
Using the program
-----------------
To connect to an SMTP server and send all pending messages in the spool
directory, simply run the program. The following command line flags
are recognised:
-h Display a brief help message
-s Specify the name of the SMTP server
-v Turn on verbose mode (extra advisory messages)
-d Specify the name of the spool directory
For example, to send all mail to the server abc.xyz.net, with verbose mode on:
smtp -v -sabc.xyz.net
That's all!
Feedback
--------
SMTP was written by me, Bob Eager. I can be contacted at rde@tavi.co.uk.
Please let me know if you actually use this program. Suggestions for
improvements are welcomed.
History
-------
1.0 Initial version.
1.1 Use new thread-safe logging module.
Use OS/2 type definitions.
Added -v option to display progress of mail transmission.
1.2 New, simplified network interface module.
1.3 Does not make connection at all if there are no messages
to send.
1.4 Corrected failure to dot-stuff on sending.
1.5 Modified to use NETLIB DLL.
2.0 Added BLDLEVEL string.
Diagnostics for occasional logfile open failures.
Additional error checking in logging module.
Grouped initialisation code together to improve paging performance.
Bob Eager
September 2000