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"); include("../src/load_prefs.php"); if ($passed_body == "") { echo "
\n"; displayPageHeader($color, "None"); plain_error_message("You have not entered a message body.", $color); exit; } else if ($passed_to == "") { echo "\n"; displayPageHeader($color, "None"); plain_error_message("You have not filled in the \"To:\" field.", $color); echo "\n"; exit; } else if ($passed_subject == "") { echo "\n"; displayPageHeader($color, "None"); plain_error_message("You have not entered a subject.", $color); echo "\n"; exit; } sendMessage($smtpServerAddress, $smtpPort, $username, $domain, $passed_to, $passed_cc, $passed_bcc, $passed_subject, $passed_body, $version); if ($auto_forward == true) echo ""; echo "\n"; displayPageHeader($color, "None"); echo ""; echo "