MailWrench CSharp Command Line Mailer for Windows is now Free Software

Version 2.00 of MailWrench, my newest command-line mailer for Windows, is now free software.  You may download the C# source code, executable file, build script, and the v 1.01 documentation at:

http://www.mailsend-online.com/mailwrench.zip

Any further changes to MailWrench will be captured in the following repository:

https://github.com/jimlawless/mailwrench

There’s a new feature in version 2.00 that has a clumsy method of inlining images to HTML emails.  It’s not documented in the supplied HTML file. Here’s a brief description:

To include an inlined image in your email, refer to the image by the following  IMG tag in your HTML:

<img src="${img1}" alt="" />

Then, add the following to your MailWrench command-line:

-img 1 whatever.png

Right now, it’s probably best to keep the images in the same directory as the HTML source file.  I had intended to build something to parse an HTML file for image tags but I just hadn’t gotten around to it.

The included batch file build.bat can be used to compile MailWrench.  I didn’t use Visual Studio nor any other IDE.  I don’t believe that you need a full .NET development kit in order to compile MailWrench.  The standard compiler that accompanies the .NET distributions works nicely.

As the code is barely commented, please feel free to ask questions about sections of it.  ( Please ask them in the comments sections on this post.) Note that I ported MailWrench from a non-OOP codebase, so for expediency’s sake, I opted to code my C# in a non-OOP procedural style.

I have removed the code that performed the nagware protection-scheme warning in the trial version.  I’ll post that code here later and will walk through the genesis of the approach in that post.

Advertisements

About Jim Lawless

I've been programming computers for about 36 years ... 30 of that professionally. I've been a teacher, I've worked as a consultant, and have written articles here and there for publications like Dr. Dobbs Journal, The C/C++ Users Journal, Nuts and Volts, and others.
This entry was posted in Technology and tagged , . Bookmark the permalink.

4 Responses to MailWrench CSharp Command Line Mailer for Windows is now Free Software

  1. Dan says:

    whatever.png is good, but whatever.pdf – not good. How?
    Thanks

  2. Dan says:

    < PDF isn’t an image format that embeds using the IMG tag.
    Yes, but How to send a PDF to gmail?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s