Download Latest Version SMTPmail_0.7.7.zip (49.6 kB)
Email in envelope

Get an email when there's a new version of SMTPmail

Home
Name Modified Size InfoDownloads / Week
Version 0.7.6 2014-11-01
Version 0.7.5 2014-09-14
Version 0.7.2 2013-07-04
Version 0.6 2011-08-19
SMTPMail.exe 2014-11-01 36.9 kB
ExampleUsage.bat 2014-11-01 1.0 kB
ReadMe.txt 2014-11-01 3.9 kB
SMTPMail.cs 2014-11-01 46.1 kB
SMTPmail_0.7.7.zip 2014-11-01 49.6 kB
Totals: 9 Items   137.5 kB 0
SMTPmail is a command line program for sending emails.

Supports:
 For message body supports sending plain text from the command line
  or text files, HTML files and .MHT files (must use full path for filenames)
 Up to 99 File Attachments
 sending TO: lists from a file

//**** USAGE: SMTPMail SMTP FROM TO [REPLY [SUBJ [BODYTEXT [BODYHTML [ATTACHMENT(S) or SSL=port# or USER= or PASS=]]]]]]
//****
//**** Written by: Jason Bell
//****             bellinbox@bellsouth.net
//****
//**** Send Email messages via SMTP from the command line
//**** User supplies SMTP Server, To, From, Subj, TextBody, HTMLBody, Attachment(s)
//**** Allows up to 99 attachments (OpSys or SMTP servers may limit)
//**** Hooks are in for CC and BCC but not processed from command line arguments
//****
//**** TO, TextBody and HTMLbody can be files
//**** Files are detected by having a : as the second character in the name (eg C:\test\x.htm)
//****                                \ also considered eg \\server\c$\dir1\file1.ext
//****
//**** Allows MASS MAIL when TO argument is a TAB delimitted file with eMail addres as 1st column
//****
//**** A .MHT file, (eg saved from Internet explorer) as the TextBody will strip header and send as SMTP directly
//****
//****
//****    0.7.2  -  August 2011  -  Added SSL/USER/PASS options
//****    0.7.3  -  December 2011 - Set default to SSL off (was forcing SSL even when not)
//****    0.7.4  -  July 2013    -  Added FileStream.Close to release resources
//****    0.7.5  -  July 4, 2013 - Fix Attachments mixed with USER/PASS/SSL arguments problem
//****    0.7.6  -  September 2014 - Added option to have multiple TO recipients delimited by ; 
//****    0.7.7  -  November 2014  - Fixed noname.txt attachment when no text or html body is sent
//****
//****
//**** Help from http://www.programmersheaven.com/2/Art_CSharp_2
//****           http://www.ietf.org/rfc/rfc0821.txt
//****           http://geocities.com/dbeurive/commun/smtp.htm
//****           MSDN and lots of other places on the web





SMTPMail 0.7.7  01NOV2014                                          JJB Software
                                                                     Jason Bell
                                                        bellinbox@bellsouth.net

  USAGE: SMTPMail SMTP FROM TO [REPLY [SUBJ [BODYTEXT [BODYHTML
                 [ATTACHMENT(S) or SSL=port# or USER= or PASS=]]]]]]

  where:
        SMTP is required IP address or name of email SMTP server
        FROM is required email address/name to indicate message is from
        TO is required email address to send to, or complate path of MailList
        REPLY is where any reply to the message will be addressed
        SUBJ is a text string for the email subject line
        BODYTEXT is a text string for the body or complete path of text file
                 if file ends in .MHT, will use previously SMTP coded MHT file
        BODYHTML is a HTML string for the body or complete path of HTML file
        ATTACHMENT(S) is complete path of file(s) to attach to email
        SSL=port# use Secure Sockets Layer (eg ssl=465 or SSL=587)
        USER=email account login username (eg user=kilroy@gmail.com)
        PASS=email account password (eg pass=bettyboop)
  notes:
        If TO is a filename like c:\SMTPmm.in then reads Email list SMTPmm.in,
          TAB Delimitted 1stCol=EmailAddr, 2ndCol=Name, 3rdCol=Company,...
          TO may also be a ; delimitted list of email addresses
        If HTML is present, BODY is ignored
        You may have many attachments
        FROM is not validated, just a display name.
        REPLY is return-address if the recipient replies.
        SSL= will activate secure sockets otherwise use port 25.
        DEBUG= will generate more detail messages to diagnose problems.
        After paramater 7 parameters can be mixed in any order.
Source: ReadMe.txt, updated 2014-11-01