i have this code and it works even with hotmail but still some mail servers think my mails are junk mails. Code:
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->Host = "SMTP SERVER";
$mail->From = "SENDER";
$mail->FromName = "SENDBYWHO";
$mail->AddAddress("TO");
$mail->WordWrap = 50;
$mail->IsHTML(false);
$mail->Subject = "Test";
$mail->Body = "Hello!";
if(!$mail->Send()) {
echo "Message could not be sent. <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
?>
Any ideas what could i do with phpmailer to get better results or is there some better php mailer class out there?😕