Initial commit

The original code was taken from http://ginstrom.com/code/mailer.html
to have some features reworked and/or corrected.