Hi, I have been trying to get phpmailer to work for me. My host (Godaddy) has provided me with the server to use, my code is all right and I am just plain out of ideas. I keep getting the error: Message was not sent.Mailer error: SMTP Error: The following SMTP Error: Data not accepted
I REALLY don't understand this, I am using port 25 (which works well with Thunderbird), the server is correct, the email addreses are correct....I'm just clueless now. If someone could help me I would REALLY appreciate it!
Here is the code I have:
<?PHP
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "relay-hosting.secureserver.net"; // SMTP server
$mail->From = "this@that.biz";
$mail->AddAddress("tester@yahoo.com");
$mail->Subject = "First PHPMailer Message";
$mail->Body = "Hi! \n\n This is my first e-mail sent through PHPMailer.";
$mail->WordWrap = 50;
if(!$mail->Send()) {
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
} else {
echo 'Message has been sent.';
}
?>