+ $err->add($i18n->get('error.mail_send'));
+ }
+}
+
+$smarty->assign('sender', SENDER);
+if (function_exists('imap_mime_header_decode')) {
+ $elements = imap_mime_header_decode(SENDER);
+ if (count($elements) > 1) {
+ // Reassign sender.
+ $new = $elements[count($elements) - 2]->text;
+ $smarty->assign('sender', $elements[count($elements) - 2]->text);