fixed deprecated new by reference
removed deprecated code
i18n fix
json return value when resending mails