| (mm) | mailsend - send mail via SMTP Protocol | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Search | Home | Software | Count | Blog | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Software: X/Motif ansi xterm grabc mdgclock miv mplaymidi mppp mxascii mcmap mxcmap mxconsole mxkill mxshowfont qtip xmastm yrolo Web mhttpd web counter upload.pl TimeTrack.pl mod_auth_ldap Games fltkmm iphonemm Java cdcl jdgclock Libraries libcalen libmcfg libsll libmsock Misc bangla font dpr genmake hod smtp.pl vhtml phones_ldap showpic_ldap mbasecalc fluid_hack kdialppp MS Windows mwinclip.pl mbasecalc mailsend wiv |
[mailsend v1.14 (stable), v1.15b5 development]
Table of Contents
Notice: Some people reported that some version of McAfee virus scanner detects mailsend1.15b.exe as Gaobot. The root of the probelm is McAfee SiteAdvisor. It falsely claiming that mailsend is a virus! They are basically ruining the reputation of my site, which solely exists to serve the Internet community with free software I wrote. Apparently it is nothing new, this site is notorious for flagging sites falsely. Google on it, you will see what I mean. I scanned with Trend Micro PC-cillin v 15.30.1151, and their very own McAfee's Viruscan Enterprise 8.0, Other people have reported they scanned with Norton Antivirus, ClamAV 0.94.1/8645,avast! v4.8 Home Edition and it is clean. I assure you that the binaries are not compromised (checksums matches with my private copies). The site: http://www.siteadvisor.com/sites/muquit.com/downloads/6455549/ claims that it modifies registry: CHANGE [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher] CHANGE TracesProcessed=dword:00000010 CHANGE TracesSuccessful=dword:0000000c This is just insane!mailsend does not have any code to mess with registry.
Here is my comment on this:
If you are interested to verify, I am leaving the original file: mailsend1.15b5.exe.zip
Please verify with your Virus scanner and send me your comment, I would appreciate it!. In any event, if you have doubt, get the source and compile it yourself.
It's a shame McAfee accepts this kind claim without verifying themselves!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| v1.14 Binary for MS Windows | |
| File: | mailsend.exe.zip |
| Size: | 33609 bytes |
| MD5 Checksum: |
b9a0878bd8bdbe86ead1538f0f45d501
|
| Last updated: |
Feb-10-2007
|
| v1.14 Source for All platforms | |
| File: | mailsend1.14.tar.gz |
| Size: | 182688 bytes |
| MD5 Checksum: |
a743ea7aa820e203abcdb602bedb6689
|
| Last updated: |
Feb-10-2007
|
| v1.15b5 Source for All platforms | |
| File: | mailsend1.15b5.tar.gz |
| Size: | 189253 bytes |
| MD5 Checksum: |
89fca6492f30e5a2b6047ce477d7221f
|
| Last updated: |
Apr-27-2007
|
| v1.15b5 Binary for MS Windows | |
| File: | mailsend1.15b5.exe.zip |
| Size: | 236643 bytes |
| MD5 Checksum: |
deb005aee615bbcae84fd9d87b8d6e8d
|
| Last updated: |
Apr-27-2007
|
| v1.15b5 Binary for SimpleShare NAS Device | |
| File: | mailsend_ss |
| Size: | 77000 bytes |
| MD5 Checksum: |
27afa55a4d579cc4be53d159c08e7a1f
|
| Last updated: |
Jun-10-2007
|
Must be compiled with latest OpenSSL if STARTTLS and CRAM-MD5 support is needed. I tested with OpenSSL 0.9.8d. Here's how to compile with openssl:
$ sh ./configure --help
$ sh ./configure --with-openssl=/usr/local/ssl
$ make clean
$ make
$ mailsend -h
Version: @(#) mailsend v1.15b5
Copyright: GNU GPL. It is illegal to use this software for Spamming
(Compiled with OpenSSL 0.9.7l 28 Sep 2006)
usage: mailsend [options]
Where the options are:
-smtp hostname/IP* - of the SMTP server
-port SMTP port - SMTP port
-d domain - domain name for SMTP HELO/EHLO
-t to,to..* - email address/es of the reciepient/s
-cc cc,cc.. - Carbon copy address/es
+cc - don't ask for Carbon Copy
-bc bcc,bcc.. - Blind carbon copy address/es
+bc - don't ask for Blind carbon copy
+D - don't add Date header
-f address* - email address of the sender
-sub subject - subject
-l file - a file containing the email addresses
-attach file,mime_type,[i/a] (i=inline,a=attachment)
- attach this file as attachment or inline
-cs character set - for text/plain attachments (default is us-ascii)
-M "one line msg" - attach this one line text message
-name "Full Name" - add name in the From header
-v - verbose mode
-V - show version info
-w - wait for a CR after sending the mail
-rt email_address - add Reply-To header
-rrr email_address - request read receipts to this address
-starttls - Check for STARTTLS and if server supports, do it
-auth - Try CRAM-MD5,LOGIN,PLAIN in that order
-auth-cram-md5 - use AUTH CRAM-MD5 authentication
-auth-plain - use AUTH PLAIN authentication
-auth-login - use AUTH LOGIN authentication
-user username - username for ESMTP authentication
-pass password - password for ESMTP authentication
-example - show examples
-ehlo - force EHLO
-info - show SMTP server information
-help - shows this help
-q - quiet
The options with * must the specified
Example of authentication:
STARTTLS+AUTH PLAIN: mailsend -f muquit@example.com -d example.com -smtp smtp.gmail.com -sub test -from muquit@muquit.com +cc +bc -v -starttls -auth-plain -user you -pass 'secert' STARTTLS+AUTH CRAM-MD5: mailsend -f muquit@example.com -d example.com -smtp 1.2.3.4 -sub test -from muquit@muquit.com +cc +bc -v -starttls -auth-cram-md5 -user you -pass 'secert' STARTTLS+AUTH LOGIN: mailsend -f muquit@example.com -d example.com -smtp 1.2.3.4 -sub test -from muquit@muquit.com +cc +bc -v -starttls -auth-login -user you -pass 'secert' mailsend -f muquit@example.com -d example.com -smtp 1.2.3.4 -sub test -from muquit@muquit.com +cc +bc -v -starttls -auth -user you -pass 'secert' Notice: CRAM-MD5 will be tried first, then Login and after that PLAIN. (Password can be set by env var SMTP_USER_PASS instead of -pass)Note: I suggest you always use STARTTLS if your server supports it, especially if you are using AUTH PLAIN or LOGIN.
How to Compile
In Unix:
$ /bin/rm -f config.cache
|
mailsend
In MS Windows:
A compiled binary for MS Windows is already supplied. However, if you need
to modify something or
want to compile yourself, you'll need MS Visual C++ (I used MS Visual C++ 6.0).
To compile, open a command shell and type:
c:\> nmake -f Makefile.win clean
|
It compiles cleanly with cygwin as well:
./configure make
The name of the binary will be mailsend.exe
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
If it's needed to send mail to multiple people, a file can contain addresses and can be used with the flag -l. The syntax of the file is as follows:
# File can contain address to send mail to # A line can start with To: email_address, # Cc: email_address, BCc: email_address or # just addresses # Any line starts with a # or ; is considered a comment #muquit #muquit@muquit.com To: blah@example.com Cc: foo@bar.com jdoe@gmail.com mjane@yahoo.com
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
Known Bugs
For text or html attachments, \r\n is not added at the ends of lines.
It'll be fixed in the next release.
Ans: Yes. I'll use the Firefox as an example as I
use it. By default on windows
Firefox
will start outlook express (or nothing) to send mail when you click on a mailto: link.
This behavior can be changed as follows:
Go to Control Panel Click on Folder Options Click on File Types tab Click on [NONE] URL:MailTo Protocol Click on Advanced button Click on open then Click on Edit... button Uncheck Use DDE In the Application used to perform action field, add the line (without line breaks): "C:\path\of\mailsend.exe" -smtp IP_address_of_your_smtp_server -v -d your_domain.com -f you@your_domain.com +cc +bc -v -w -t "%1"Note: there's no need to clean mailto: tag from another program before calling mailsend.
On Unix, search on the web on how to setup external mail sender for Firefox. Again there's no need to remove mailto: tag from another script.
Yes. From v1.15a+, STARTTLS, CRAM-MD5, LOGIN and PLAIN authentication is supported.
Copyright
GNU General Public License
ChangeLog (link)
URL of this page: http://www.muquit.com/muquit/software/mailsend/mailsend.html