Hey everyone, this following PHP script I'm using along with Swiftmailer is being caught as Spam on the mail server it's being sent to. The reason its being caught as spam, is because the header information is "malformed", or so my web host tells me. If anyone sees something that would cause this in the code, please let me know. Thanks.
$subject = "Website: News Story needs review/activation.";
$message = "There has been a news item submitted for review";
$conn =& new Swift_Connection_SMTP("mail.midstatemutual.com");
$swift =& new Swift($conn);
$message =& new Swift_Message("$subject", "$message");
if ($swift->send($message, "email@example.com", "firstname.lastname@example.org")) echo "Sent";
else echo "Failed";