MAILIT - Version 1.01 ===================== HI! MAILIT is a command line utility with SMTP email client, to send email from a batch file. This can be useful for network administrators who need some sort of automated information from a server (or client) machine. Requirements: ------------- TCP/IP protocol and available SMTP server are required. MAILIT can run under Win9x/NT/2000. Usage: ------ copy MAILTEST.BAT to another file and edit it as needed. Tips: ----- * Create your own BAT file, that receives a parameter like the message text (string of filename), the recipient email address, and/or the file to attach. Your custom BAT file will use predefined values of MAILIT_SERVER ,MAILIT_FROM, and other values that are constant in your implementation, while using parameters (%1 %2) for variable values. Remember that if you call a BAT file from another one, you should use the CALL command. * Do some tests to see that it's working as you want it to (obvious isn't it?). * If you get an "Out of environment space" error in Win9x, add the following to CONFIG.SYS: SHELL=C:\COMMAND.COM /E:1024 /P More Info: ---------- Here is some more info about the program variables: * SET MAILIT_SERVER=127.0.0.1 The IP address of your SMTP mail server. A DNS FQDN is also allowed, but will decrease performance. * SET MAILIT_FROM=myself@mymailserver Some SMTP servers require a valid FROM address, otherwise you may get an NDR when the server denies to "Relay" your message. * SET MAILIT_TO=myfriend@hermailserver You must supply a valid destination of course... This address can be your email address or any other. * SET MAILIT_SUBJ=MAILIT Trivial... * SET MAILIT_MSGTEXT=This is the first line of the message body (Optional) This value will be added to your message as the body text. Use it when you want to send a short message of a single line. * SET MAILIT_MSGFILE=MAILIT.TXT (Optional) When you need to send a longer message, or an ASCII/ANSI text file (like a LOG from other program). This is the filename of the text file to send. * SET MAILIT_ATTACH=MAILIT.TXT (Optional) Send any file as attachment. Only 1 attached file is supported in the current version of MAILIT. FreeWare: --------- This version of MAILIT is FreeWare, you may copy and use it free of charge. If you use MAILIT, please send me an email with some info about yourself and how MAILIT is used. Version History: ---------------- Version 1.01, July 2000 - Additions to the MAILIT.TXT file only (this file). Version 1.0, June 2000 - First Release. Contact and other info: ----------------------- MAILIT was written by Yizhar Hurwitz, from Israel, using Delphi 3. MAILIT will be part of my NUTS collection of network utilities, available for free download from my site. My email: yizhar@mail.com (or yizhar@usa.net if any problem) My Site: http://come.to/yizhar (or http://teachers.sivan.co.il/yizhar if any problem) The SMTP implementation was written by Francois PIETTE francois.piette@rtfm.be http://www.rtfm.be/fpiette I just added the command line usage of it. Thanks Francois! Enjoy Yizhar