lotus



previous page: 5A-3: What TELNET Servers are commerically available for Windows NT on Intel?
  
page up: Windows NT Internet FAQ
  
next page: 5B-2: Where can I find an archie client for NT?

5B-1: Does anyone know if there is a program which allows you to sendSMTP mail from the command prompt on NT?




Description

This article is from the Windows NT Internet FAQ, by sscoggin@enet.net (Steve Scoggins) with numerous contributions by others.

5B-1: Does anyone know if there is a program which allows you to sendSMTP mail from the command prompt on NT?

Pedro Mendes, (prm@aber.ac.uk) just finished making one such program,
and it is freeware, see below:

WinNT's Blat ver 1.0 has been uploaded to the following FTP sites:

gepasi.dbs.aber.ac.uk:/blat10.zip
ftp.cica.indiana.edu:/pub/pc/win3/nt/blat10.zip

Distributions are in the form of .ZIP files, be sure to user binary
mode FTP to do the transfer.

Blat is a command line SMTP mail client for Windows NT, originally by
Mark Neal and Pedro Mendes. A great part of the code in this program
was produced by the WinVN team (including GENSOCK.DLL).

Both source code and binaries for intel 80486 are distributed.
Recompile the source code if you need it for a different
architecture.

below is a description of the program:

Blat is a Public Domain (generous aren't we?) Windows NT console
utility which will e-mail a file to a user via SMTP. The program
requires the "gensock" DLL (borrowed from WinVN). A Registry entry is
generated when the program is used with the -SMTP flag. This stores
the address of the SMTP server, and the address of the _default_
sender (this may be overridden with the -f flag). Impersonation can
be done with the -i flag which puts the value specified in place of
the senders address in the "From:" line of the header, however if this
is done the real senders address is stamped in the "Reply-To:" and
"Sender:" lines. This can be useful when using the program to send
message from NT users that are not registered on the SMTP host.


SYNTAX:

Blat <filename> [-s <subject>] -t <recipient> -f <address>
-c <carboncopy> [-i <address>]

Blat -SMTP <server address>
Blat -SMTP <server address> <senders address>
Blat -h

-SMTP <server address>: address of SMTP server,
-SMTP <server address> <senders address>: address of SMTP host, default sender

<filename>: the file with the message body,
-s <subject>: the (optional) subject line,
-t <recipient>: the recipient's address(es),
-t <recipient>: address(es) for carbon copies,
-f <sender>: the sender's address (must be known to the SMTP server),
-i <address>: a 'From:' address, not necessarily known to the SMTP server.
-h: this help.



 

Continue to:















TOP
previous page: 5A-3: What TELNET Servers are commerically available for Windows NT on Intel?
  
page up: Windows NT Internet FAQ
  
next page: 5B-2: Where can I find an archie client for NT?