adding func to email salary slips directly after pdf conversion