Bug 871897 - [email] Change mail sending process to use streaming to reduce peak memory usage