AutoReply.cmd

An autoresponse script for Inet.Mail

The AutoReply.cmd script will send an automatic response
to the sender of the message based on the username the
message was sent to.

This means you can setup a username of "info" and specify
its local delivery process to be "autoreply.cmd". When
Inet.Mail calls AutoReply, it will take the username
passed in and append ".txt" to it. It will send this
file back to the sender.

You need to do a few things to make it work:

1. On line 28 of AutoReply.cmd, put the hostname of your
machine. Replace the 'example.com' with your hostname. The
single quotemarks are necessary.

2. Put an environment variable in your config.sys as

  SET AUTOREPLY=c:\autoreplydir

Where it points to the directory containing the files to
be sent back.

3. Alternatively, comment out line 50 (using the rexx /* */
comment delimenters. Then uncomment line 51. On line
51, set AutoReply equal to the directory storing your
reply files.

4. Set up as many usernames as you want autoreplies for. They
should all start your AutoReply.cmd script. The script bases
its reply on the username.

5. The following command files need to be available on the PATH
somewhere:

   AppeLock.cmd
   LockOpen.cmd     (included in the Steward distribution)
   LockClose.cmd    (included in the Steward distribution)
   Lock.cmd         (included in the Steward distribution)
   CopyLock.cmd     (included in the Steward distribution)

6. The From address will be set to the autoreply address. This means
if your autoreply address is "info@example.com", then the From address
of the message going back will list that.

7. You may optionally specify a ReplyTo address to use for
every message sent. This is on line 26. Put a fully qualified
email address between the single quotes.

8. To enable multi-domain support, remove line 54.

That's all there is to it.


