download now

donate

SwithMail 1.5.4.1

--Send SSL SMTP email silently from command line (CLI), or a batch file using Exchange, Gmail, Hotmail, or Yahoo! Plus - for FREE!

swithmail boxCurrent Version: 1.5.4.1

What's New?

Known issues
find a bug? report a bug!

 

GET VERSION 2.0!
Adding xml support
and CLI argument generation!

 

SwithMail is free for Commercial and Non-Commercial Use.

That said, if you find it useful, please consider a small donation to keep the software free & updated.

Download from SourceForge

The following links may not be up to 100% date -- use SourceForge link for most recent release!
SwithMail video tutorial at softoxi.com softpedia clean softsea clean

support SwithMail
keep the updates coming!

Swith??

swith

–adverb
1. immediately; quickly.

SwithMail is a windows application that is extremely easy to use. You run the program, set up basic settings (from address, to address, smtp server info, email subject and body), click save, and you're ready to go. Now you can send email using these settings silently from the command line, a batch file, or (the reason I wrote it), if a windows service quits.

Want to see some screen shots?

Download the How-To and Usage Guide - updated (2011-08-02 - v1.5.2.0)

top

Known Issues:

- None - all known issues have been resolved with the latest release.

find a bug not in this list? Let me know!

top

Usage:

SwithMail.exe [/Silent]  [/ToAddress ...] [/CC ...] [/BCC ...] [/FromAddress ...] [/FromName "..."]
[/Subject "..."] [/Body "..."] [/HTML true] [/Attachment "C:\Path\To\File.txt"] [/Param1 "Mr. Smith"]

top

Options:

/Silent - [also /s or /q] send an email without any prompt.
/FromAddress - [also /from] email address
/Server - server address - no port specified
/Port - [also /p] server port - needed if /Server is used
/Password - [also /pass] password - in plain text
/SSL - [also /TSL] "true" or "false" depending on if SSL / TLS is enabled
- If True / False not specified, True is assumed
/ToAddress - [also /to] email address(es); multiple separated by ';' or ','
/CC - email address(es); multiple separated by ';' or ','
/BCC - email address(es); multiple separated by ';' or ','
/FromName - [also /name] name displayed
/Subject - [also /sub] subject "in quotes"
/Body - [also /b] email body "in quotes" - html tags allowed when /HTML=true
/HTML - "true" or "false" depending on if HTML tags are allowed in the body
- If True / False not specified, True is assumed
/Attachment - [also /a] "C:\Path\To\File.txt""
/Param1 - [also /p{1-5}] use %Param1% in the subject or body, & it will be replaced with this value.
Param1-Param5 are available for use.
/Test - use when testing CLI-Only arguments. Msgbox will appear with errors or success.

top

Notes:

-arguments are NOT case sensitive
-arguments can be prefaced with '/', '-' or '--'
-arguments and values can be separated with a space, ':' or '='
-arguments not specified will use option saved in settings"

top

Example Usage:

swithmail.exe /silent /toaddress:"1@mail.com;2@mail.com" /cc cc@mail.com /subject:"here, %Param1%" /body:"line 1<br/>line 2" /html=true /param1="Mr. Smith"

top

Obviously, you wouldn't need to use %Param1% when you specify the subject and body from the CLI, but, again, if you need to send emails on a schedule to multiple different recipients, and you want to personalize them, open SwithMail without the /silent option, configure settings, and fill out the subject and body using %Param1% - %Param5%, then you can write a batch script, and specify the different "to" addresses, and the parameters, and have SwithMail do the rest!

Windows operating systems tested and working:

- Windows XP
- Windows 7 32 bit
- Windows 7 64 bit
- Windows Server 2003 32 bit
- Windows Server 2003 64 bit
- Windows Server 2008 64 bit

Others versions should work, but I have not tested them. If you try it, and it does work, let me know and I'll add it to the list. Thanks!

top

Revision History

Revision: v1.5.4.1
========================
-Bug Fix: fixed /p3 - /p5 parameters overwriting /p2's value. (/param3 - /param5 worked just fine...)

Revision: v1.5.4.0
========================
-Bug Fix: attaching files from CLI with full path following '/a "c:\..."' was not parsing correctly – work around was to use a colon (:) or equal sign (=) after the '/a' – issue now resolved. Now it's only splitting on a colon if it's NOT followed by a backslash (\) (eg: /a "C:\temp\test.txt" will not split on the colon because it's followed by a backslash). - Thanks, Paul.
-Added icons in file menu.

Revision: v1.5.3.0
========================
-New Icon

Revision: v1.5.2.0
========================
-Added even more CLI arguments
-Now you can specify everything you need from the CLI - server, port, password, SSL, etc.
-Added /test CLI argument - when set, a message box will appear with success or failure.
-Added ability to check for updates from the Help menu.

Revision: v1.5.1.0
========================
-Added changable params 1-5 for subject and body of email
-Now you can put %Param1% - %Param5% in the subject and/or body of the email, and replace the values from the command line using the /Param1 "value 1" /Param2 "Value 2" ... commands.

Revision: v1.5.0.0
========================
-Added several CLI arguments
-Added functionality for attachments, CC, and BCC

Revision: v1.0.0.1
========================
-Moved SMTP Server radio buttons to top of configuration form.
-Updated assembly information

Revision: v1.0.0.0
========================
-initial release

top

Download from SourceForge

The following links may not be up to 100% date -- use SourceForge link for most recent release!
SwithMail video tutorial at softoxi.com softpedia clean softsea clean

support SwithMail
keep the updates coming!

Typical disclaimer applies:

This software is provided by the copyright holder and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.

top

Basically, I am not responsible for the way this application is used, nor can I ensure that no damage will be caused by using this program. Don't use it to send SPAM. Please... that's not why I wrote it, and nobody likes SPAM!

.