Version: @(#) mailsend v1.14 Copyright: GNU GPL. It is illegal to use this software for Spamming 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 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 -a 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 -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 -help - shows this help The options with * must the specified Example (Note: type without newline): Show info amount SMTP server and exit: mailsend -info -smtp smtp.gmail.com mailsend -f muquit@example.com -d example.com -smtp 10.100.30.1 -t muquit@muquit.com -sub test -a "file.txt,text/plain" -a "/usr/file.gif,image/gif" -a "file.jpeg,image/jpg" mailsend -f muquit@example.com -d example.com -smtp 192.168.0.2 -t muquit@muquit.com -sub test +cc +bc -a "c:\file.gif,image/gif" -M "Sending a GIF file" mailsend -f muquit@example.com -d example.com -smtp 192.168.0.2 -t muquit@muquit.com -sub test +cc +bc -cs "ISO-8859-1" -a "file2.txt,text/plain" Change content disposition to inline: mailsend -f muquit@example.com -d example.com -smtp 10.100.30.1 -t muquit@muquit.com -sub test -a "nf.jpg,image/jpeg,i" -M "content disposition is inline" Note: There're no line breaks in the above commands. Also NOte: From mailsend v1.11, filename and MIME type separator is a comma (,), the separator used be a colon (:). 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. For determining MIME types, please look at the file mime.types. I borrowed this file from Apache server source.