fixed threaded execution for mail-sending