Refactor sendmail login when assigning an employee to a specific asset