Adding MAILTO support

Some of the code isn't exactly pretty, but it works quite well. See if you'll consider this :)