Discussion Locked

email from .bat file on NT

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am currently running a .bat file that runs various steps where I update an Oracle database. I'm running on NT 4.0. I would like to include a step between each of the other steps that emails me in the event of a failure and also an email at the end of the job when the .bat finishes. Is there a way to email from a .bat file in NT? I would like to do this with native NT commands and not third party software.

7 replies

by computerdude

I do not know of any commands to send e-mail. How about testing for success or failure and pipeing the result to a text log file.

Dave

by bdnoble

We already do this, however, we have to remember to check the log file. What I was looking for was a way to have a reminder sent to me via email. I check my email first thing every morning and with an email with either sucess of failure, it would tell me whether or not I had to check the log file.
I do appreciate you taking the time to answer, however.

by gh0stmaker

This is a 3rd party, but works well for Windows Nt. Program called Blat...
INDEX

- description
- installation
- what's new in this version
- usage
- examples
- future improvements
- copyright
- authors
- contributors

DESCRIPTION:

Blat is a Public Domain (generous aren't we?) Windows NT console utility that
sends the contents of a file in an e-mail message using the SMTP protocol.
Blat is useful for creating scripts where mail has to be sent automatically
(CGI, backups, etc.) To use Blat you must have access to a SMTP server via
TCP-IP. Blat uses the a DLL ("gensock" or "gwinsock") from WinVN, the public
domain usenet newsreader for windows. Blat can store a default SMTP server
address and a default "From:" field in the registry. The server's address can
be overriden using the -server flag, and the "From:" address using the -f
flag. Input from the console (stdin) can be used instead of a disk file (if
the special filename '-' is specified). Blat can also "carbon copy" and
"blind carbon copy" the message. Impersonation can be done with the -i flag
which puts the value specified in the "From:" line, however when this is done
the real senders address is stamped in the "Reply-To:" and "Sender:"lines.
This feature can be useful when using the program to send messages from NT
users that are not registered on the SMTP host.

Optionally, blat can also attach multiple binary files to your message.

by bdnoble

Thanks even though this product is an add on, It what I was looking for... And the price is right!

This discussion is closed to new replies.