include("../config/config.php");
include("../functions/strings.php");
include("../functions/page_header.php");
include("../functions/mailbox.php");
include("../functions/smtp.php");
include("../functions/display_messages.php");
if ($passed_to == "") {
echo "
";
displayPageHeader("None");
plain_error_message("You have not filled in the \"To:\" field.");
echo "\n";
exit;
echo "";
displayPageHeader("None");
plain_error_message("Message NOT sent
You have not entered anything into the To: field.
Press the BACK button on your browser");
exit;
} else if ($passed_subject == "") {
echo "";
displayPageHeader("None");
plain_error_message("You have not entered a subject.");
echo "\n";
exit;
}
sendMessage($smtpServerAddress, $smtpPort, $username, $domain, $passed_to, $passed_cc, $passed_bcc, $passed_subject, $passed_body, $version);
echo "";
echo "";
displayPageHeader("None");
echo "";
echo "
Message Sent!
";
echo "You will be automatically forwarded.
If not, click here";
echo "";
?>