Hi,
I have been trying for a couple months now to gain basic email functionality in my web form. I've just downloaded and installed phpmailer and followed their tutorial. It all seems simple enough, but I keep getting the error Message was not sent.Mailer error: SMTP Error: The following SMTP Error: Data not accepted.testmail@yahoo.com
I was going to ask them for guidance but they have it clearly explained that only paying customers take a priority (fully understandable, they need to make a living). If someone out there has any experience with this program and can give me a little assistance I would REALL appreciate it!
Here is the code:
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "smtpout.secureserver.net"; // SMTP server
$mail->From = "info@zenix.biz";
$mail->AddAddress("testmail@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.';
}
?>