Bug 900894 - [Email] Integration test for sending email via IMAP

Add a integration test for sending email via IMAP.
http://bugzil.la/900894