Added support for sending emails.
Added notes to README about email functionality.
merged with upstream