Add support to email

See http://stackoverflow.com/a/46181/1044759