add Mac OS X email support
Merge pull request #49 from Davideddu/macosx_email

add Mac OS X email support