Email now works. Sends attachments as well.