[mailsend Release 1.2]
Table of Contents
Introduction
mailsend is a simple program to send mail via
SMTP
for MS Windows NT/2000.
I needed to send a piece of alert mail from a program in a networked NT
machine, but could not find a simple program like this installed. So I
wrote one. You might find it useful in some situations.
At this time I don't have any plan to port it to Unix. Unix has many nifty
little tools like this.
Synopsis
Version: @(#) mailsend 1.1 http://www.muquit.com/
usage: mailsend [options]
Where the options are:
-d domain* - domain name for SMTP Helo
-smtp hostname/IP* - of the SMTP server
-p SMTP port - SMTP port
-t to,to..* - email address/es of the recipient/s
-c cc,cc.. - Carbon copy address/es
-b bcc,bcc.. - Blind carbon copy address/es
-f address* - email address of the sender
-sub subject - subject
-l file - a file containing the email addresses
-m file - the file to read message from
-v - verbose mode
-help - shows this help
The options with * must the specified
You must know the address or IP address of the SMTP server you use.
The file you specify with -l contains email address one per line.
Download
You can download source if you need to look at the source for some reason or
modify it. Download the compiled binary otherwise.
-
Download compiled binary:
mailsend.exe (57344 bytes) (md5=641c3763dec97951db7b834110c92341)
(Last updated: Apr-06-2001)
-
Download zipped source:
mailsend.zip (87131 bytes) (md5=00381588f043f97bd808e40963b0633c)
(Last updated: Apr-06-2001)
How to use
This is a console application, you can run it from command shell
or by clicking on the app from file explorer. You can use it in many ways.
I'm using 1.2.3.4 as the IP address of the SMTP server as an example,
change this to your valid one.
Some example are shown below:
Interactive usage
c:>\ mailsend
SMTP server address/IP: 1.2.3.4
Domain: muquit.com
From: muquit@muquit.com
To: muquit@example.com,foo@example.com
Carbon copy: bar@example.com
Blind Carbon copy:
Subject: This is a test
=========================================================================
Type . in a new line and press Enter to end the message, CTRL+C to abort
=========================================================================
this is a test
this is a test
.
Non-interactive usage
Everything the program needs can be fed from stdin or from a file.
Examples:
mailsend -d muquit.com -smtp 1.2.3.4 -t muquit@muquit.com
-f muquit@muquit.com -sub "test" -m msg.txt
message can be passed from stdin as well:
mailsend -d muquit.com -smtp 1.2.3.4 -t muquit@muquit.com
-f muquit@muquit.com -sub "test" < msg.txt
If no message file is specified, it will ask to type the message:
mailsend -d muquit.com -smtp 1.2.3.4 -t muquit@muquit.com
-f muquit@muquit.com -sub "test"
=========================================================================
Type . in a new line and press Enter to end the message, CTRL+C to abort
=========================================================================
test. test.
.
Also a file can be created with smtp server, from, to, cc, bcc, subject
and mail body which can be used as a single input to the program. For
example, if you create a file like below:
1.2.3.4
example.com
foo@example.com
bar@example.com
Mail body starts here.
This file can be used to feed to the mailsend program.
The first line is the smtp server address or IP address.
The second line is the domain used in SMTP HELO.
The third line is the From address.
The fourth line the To address/es. They can be command separated.
Right after the To the mail body starts.
Now this file can be fed as follows:
mailsend -v < msg.txt
You can see the mail getting delivered if you specify the -v flag.
Note: in non-interative mode, you can not specify Cc, Bcc or Subject in
the file. If you need any of them specify with appropriate flags.
If you find the program useful,
please let me know
Copyright
GNU General Public License
ChangeLog
- The headers Cc, Bcc and Subject are not asked in the message file is
specified with -m or if anything is passed from stdin. If you need any of
them in non-interactive mode, specify them with appropriate flags.
(Apr-11-2001)
- version 1.1 released.
(Apr-07-2001)
URL of this page:http://www.muquit.com/muquit/software/mailsend/mailsend.html
|