technical remake of mailsender module