MailWrench is a command-line utility that allows one to send e-mail via an SMTP or SMTPS mail server.
http://sites.fastspring.com/mailwrench/product/mailwrench
Syntax:
MailWrench [options] where options are:
-h Display this screen
-s subject Specify subject
-a filename Attach filename
-f filename Attach files in list
-smtp smtp_addr Specify SMTP server address
-port number Specify port ( default is 25 )
-to to_address Specify 'To:' e-mail address
-from from_address Specify 'From: address
-file text_file Name of text file to send
-msg string Specify immediate message to send via the command-line
-filter Take text file input from the console stdin device
-out Redirect output to specified filename
-suppress Suppress output ( except for error messages )
-cc to_address Carbon-copy one recipient; Can be specified multiple times
-ccf filename Carbon-copy all recipients listed in filename
-bcc cc_address Blind-cc one recipient; Can be specified multiple times.
-bccf filename Blind-carbon-copy to all recipients listed in filename
-receipt Request return-receipt
-disp Request disposition notification
-ch header value Add custom header(s)
-html Send file as HTML
-timeout Maximum timeout ( in seconds )
-priority code Set priority. { low, normal, or high }
-ntlm Perform NTLM authentication with the mail server
Used for SMTP authentication.
-id loginID User ID
-password password User's password
-domain domainID Used if authenticating explicitly against a Windows domain
-ssl Use a Secure Sockets Layer connection (SMTPS)
Options can be combined in a text file to save command-line space.
See the documentation for detailed information.
MailWrench command-options can be kept in separate text files. You may specify any number of these text files on the MailWrench command-line by placing the "@" symbol in front of the filename.
I suggest that you create a file called M.CFG with the following entries:
Then, you might want to run through the following tests that are applicable to the way you want to use MailWrench:
Send a simple message to yourself via GMail:
Send a message from the text file test.txt to yourself via GMail:
Send an HTML format message from the text file test.htm to yourself via GMail:
Send a message from the text file test.txt attaching the image file picture.png to yourself via GMail:
Send a message from the text file test.txt attaching all files in the list filelist.txt to yourself via GMail:
Send a message from the console input attaching all files in the list filelist.txt to yourself via GMail:
Send a message from the HTML file test.htm to yourself via GMail, routing all output to the file testout.txt:
Send a message from the HTML file test.htm to yourself via GMail, suppressing all output:
Send a message from the HTML file test.htm to yourself via GMail with high priority:
Send a simple message to yourself via GMail adding two custom headers:
Send a simple message to yourself via GMail asking for a return-receipt:
Send a simple message to yourself via GMail, cc'ing everyone listed in the file cc.txt:
Send a simple message to yourself via GMail, blind-cc'ing everyone listed in the file cc.txt:
Send a simple message to yourself via GMail, blind-cc'ing anyone specified after -bcc. Note that -bcc parameters can be specified multiple times:
Send a simple message to yourself via GMail, cc'ing anyone specified after -cc. Note that -cc parameters can be specified multiple times:
Send a simple message to yourself and another via GMail using multiple -to paramters:
Please note that since I used GMail for all of my examples above, I had to specify -ssl each time. You won't need to do that if you're not using SMTPS or SMTP over SSL.
Please read the terms and conditions of this license agreement carefully before continuing with the usage of this product.
This EULA is a legal agreement between you (either an individual or a single entity) and Jim Lawless Software for the MailWrench software product identified above. This product may include associated software components, media, printed materials, and "online" or electronic documentation ("SOFTWARE PRODUCT"). By installing, copying, or otherwise using the SOFTWARE PRODUCT, you agree to be bound by the terms of this EULA. This license agreement represents the entire agreement concerning the program between you and Jim Lawless Software, (referred to as "licenser"), and it supersedes any prior proposal, representation, or understanding between the parties. If you do not agree to the terms of this EULA, do not install or use the SOFTWARE PRODUCT.
The SOFTWARE PRODUCT is protected by copyright laws and international copyright treaties, as well as other intellectual property laws and treaties. The SOFTWARE PRODUCT is licensed, not sold.
1. GRANT OF LICENSE.
2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS.
3. TERMINATION
4. COPYRIGHT
5. NO WARRANTIES
6. LIMITATION OF LIABILITY
The license fee for MailWrench is $20 per copy in United States funds. Applicable sales tax will be collected by my registration-processor (FastSpring).
You may pay for the MailWrench software via the link below:
Users of my former SMTP mailer, MailSend, who had registered the MailSend product on or after January 1, 2010 will receive an upgrade copy of MailWrench for every copy of MailSend that had been registered.
Customers who registered MailSend in 2009 will receive a special $15 per copy upgrade offer.
The remaining MailSend users who desire to use MailWrench must license a new copy.
Periodically, upgrade releases of MailWrench will be made available. Minor update releases may be downloaded and used without fees if you have registered the same major release of MailWrench. Otherwise, upgrade fees will apply.
The trial version of MailWrench can be invoked a maximum of about fifteen times per Windows session. You must reboot Windows in order to use MailWrench another fifteen times.
After you pay the licensing fee, this limitation goes away.
E-mails sent with the trial version of MailWrench will include the header "X-Mailer: MailWrench v1.01 (Trial Version)".
You may contact the author, Jim Lawless, via e-mail at: jimbo@radiks.net ...
Please place the word "MailWrench" in your subject-line to help sift out your e-mail correspondence from unwanted junk mail.
In 1997, I released a soon-to-be-popular command-line Win32 SMTP mailer called MailSend.
In recent years, I realized that I was not going to be able to use the same codebase in newer operating-systems to exploit new SMTP server features. For instance, I was unable to support SSL connections with MailSend without the use of third-party TCP tunneling software. At thirteen years of age, the product was starting to show some signs of falling behind.
MailWrench is an entirely new product with an entirely new codebase written in C#.
-from yourid@yourserver.com
-id yourid@yourserver.com
-password yourpassword
License
The SOFTWARE PRODUCT is licensed as follows:
(a) Installation and Use.
Jim Lawless Software grants you the right to install and use copies of the SOFTWARE PRODUCT on your computer running a validly licensed copy of the operating system for which the SOFTWARE PRODUCT was designed [e.g., Windows XP, Windows Vista, Windows 7].
(b) Backup Copies.
You may also make copies of the SOFTWARE PRODUCT as may be necessary for backup and archival purposes.
(a) Maintenance of Copyright Notices.
You must not remove or alter any copyright notices on any and all copies of the SOFTWARE PRODUCT.
(b) Distribution.
You may not distribute registered copies of the SOFTWARE PRODUCT to third parties.
You may not distribute evaluation copies of the SOFTWARE PRODUCT to third parties. Evaluation copies may be downloaded from the MailWrench web site.
(c) Prohibition on Reverse Engineering, Decompilation, and Disassembly.
You may not reverse engineer, decompile, or disassemble the SOFTWARE PRODUCT, except and only to the extent that such activity is expressly permitted by applicable law notwithstanding this limitation.
(d) Rental.
You may not rent, lease, or lend the SOFTWARE PRODUCT.
(e) Support Services.
Jim Lawless Software may provide you with support services related to the SOFTWARE PRODUCT ("Support Services"). Any supplemental software code provided to you as part of the Support Services shall be considered part of the SOFTWARE PRODUCT and subject to the terms and conditions of this EULA.
(f) Compliance with Applicable Laws.
You must comply with all applicable laws regarding use of the SOFTWARE PRODUCT.
Without prejudice to any other rights, Jim Lawless Software may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the SOFTWARE PRODUCT in your possession.
All title, including but not limited to copyrights, in and to the SOFTWARE PRODUCT and any copies thereof are owned by Jim Lawless Software or its suppliers. All title and intellectual property rights in and to the content which may be accessed through use of the SOFTWARE PRODUCT is the property of the respective content owner and may be protected by applicable copyright or other intellectual property laws and treaties. This EULA grants you no rights to use such content. All rights not expressly granted are reserved by Jim Lawless Software.
Jim Lawless Software expressly disclaims any warranty for the SOFTWARE PRODUCT. The SOFTWARE PRODUCT is provided 'As Is' without any express or implied warranty of any kind, including but not limited to any warranties of merchantability, noninfringement, or fitness of a particular purpose. Jim Lawless Software does not warrant or assume responsibility for the accuracy or completeness of any information, text, graphics, links or other items contained within the SOFTWARE PRODUCT. Jim Lawless Software makes no warranties respecting any harm that may be caused by the transmission of a computer virus, worm, time bomb, logic bomb, or other such computer program. Jim Lawless Software further expressly disclaims any warranty or representation to Authorized Users or to any third party.
In no event shall Jim Lawless Software be liable for any damages (including, without limitation, lost profits, business interruption, or lost information) rising out of 'Authorized Users' use of or inability to use the SOFTWARE PRODUCT, even if Jim Lawless Software has been advised of the possibility of such damages. In no event will Jim Lawless Software be liable for loss of data or for indirect, special, incidental, consequential (including lost profit), or other damages based in contract, tort or otherwise. Jim Lawless Software shall have no liability with respect to the content of the SOFTWARE PRODUCT or any part thereof, including but not limited to errors or omissions contained therein, libel, infringements of rights of publicity, privacy, trademark rights, business interruption, personal injury, loss of privacy, moral rights or the disclosure of confidential information.
Registering, Upgrade Fees, ...etc
http://sites.fastspring.com/mailwrench/product/mailwrench
Limitations in the Trial Version of MailWrench
Contacting the Author
Product History