move emailing to background