Saturday, January 12, 2013

A command line SMTP GMailing tool in Java.

Launched my new project in sourceforge. It is simply a command line SMTP GMailing tool. 

           I googled a lot in pursuit of Linux/Unix like utilities for my windows machine. Could find some of them (Shared them in my previous post).

Successfully installed and executed some of them :) Came across blat - A Windows (32 & 64 bit) command line SMTP mailer. Installed in my system. Executed - but could not connect to - secured connection (using SSL) was required and blat do not support it. 

Tried using open_ssl to connect to gmail.

openssl s_client -connect -crlf -ign_eof
welcome screen comes
220 ESMTP is3sm3300685pbc.6
250 at your service
auth login
334 VXNlcm5hbWU6     (asking for username - base-64 encoded form)
type-in the base-64 encoded username
334 UGFzc3dvcmQ6      (asking for password)
type-in the base-64 encoded password

Through the above procedure we can only check the connection and credentials. And everything should be base-64 encoded. Why such chaos?

With the power of Java and JavaMail API created a simple java program which accepts everything through the console. The program is just 12KB of size. Remaining (in 3.1MB) is contributed by the API jars ;)

Check this in sourceforge - dbMail

dbMail.bat -u=<loginId> -p=<password> -to=<email1;email2;email3> -cc=<email1;email2;email3> -bcc=<email1;email2;email3>

Please do not forget to give feedback :)

Saturday, January 5, 2013

Using Linux Utilities Under Windows

There are many utilities in Linux/Unix which are very useful in our life say for example sed, awk, grep, etc. Some of us might have wished Windows/DOS environment to have similar kind of utilities. Anyway I did. Today I came across some of the open source projects, while googling, which provide some of the utilities in Windows too and thought of sharing :)

The projects are GnuWin and UnxUtils.

Please find below the links to their sourceforge pages

GnuWin -

UnxUtils -

Contact Form


Email *

Message *