Added email support.

Used a simple background worker implementation.