Bug 921050 - Send email in the background.

Rebased upon master.