uiMFUndelivrableMail '$mail_subject'";
$mail_cleansubject = $mail_subject;
$mail_content = "uiMFUndelivrableMailTo '$mail_to'.\nuiMFUndelivrableMailCheck
\n
\nuiMFMailContent
\n$mail_content";
$mail_cleancontent = "uiMFUndelivrableMailTo '$mail_to'.\nuiMFUndelivrableMailCheck\n\nuiMFMailContent\n$mail_content";
$mail_to = $mail_from;
$mail_from = 'uiMFMailServer';
}
else
{
$mail_cleansubject = $mail_subject;
$mail_subject = displayable_string(clean_string($mail_subject));
$mail_cleancontent = displayable_content($mail_content);
$mail_content = displayable_string($mail_content);
$mail_from = displayable_string(clean_string($mail_from));
$mail_to = displayable_string(clean_string($mail_to));
}
$to_dir = build_user_dir($mail_to, $shard);
$to_index = $to_dir.'mail.index';
//
// send mail to recipient
//
// create new mail index
add_mail_to_index($mail_from, $mail_to, $mail_cleansubject, $mail_index);
// create mail file
create_mail($mail_from, $mail_to, $mail_subject, $mail_content, $mail_cleancontent, $mail_index);
// rebuild recipient mailbox page
build_mail_page($mail_to);
}
// redirect browser to new forum page
//redirect("mailbox.php");
include_once('mailbox.php');
?>