Add some information to log for pear mails
(CDB) Fix error changing department not possible