Mailing working on seperate thread