Thanks very much for the reply (and during the Holidays too)!!
Ok, here it is after being tweaked and tweaked again (blocked out email and password), I'm using PHPMailer:
PHP Code:
<?php
require_once("phpmailer/class.phpmailer.php");
$error = null;
function smtpmailer($to, $subject, $message, $winerror, $failerror) {
global $error;
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Username = "(blocked)";
$mail->Password = "(blocked)";
$mail->Host = "mail.(blocked)";
$mail->Port = 25;
$mail->SMTPAuth = true;
$mail->SetFrom("(blocked)", "The Educator");
$mail->AddAddress($to);
$mail->AddReplyTo("(blocked)", "The Educator");
$mail->Subject = $subject;
$mail->Body = $message;
$mail->SMTPDebug = 0;
if(!$mail->Send()) {
$error = true;
echo $failerror;
} else {
$error = false;
echo $winerror;
}
}
?>
And I call it from another page like this:
PHP Code:
require("themailingscript.php");
smtpmailer($_POST["email"], "The Educator", "This is the message I am sending you", "A message has been sent to $_POST[email].", "This just in, we could not send you a message. Your email was likely verified but the message could not be sent. This is likely a problem with our mail sending system, please come back later and the problem will probably be fixed.");
As well, I later found out I couldn't send mail with a regular email client either, meaning it's a server problem.