Message was not sentMailer Error: Language string failed to load: recipients_failed testtest@gmail.com
friends am using phpmail ..
when i submit the form ,
this error is throwing ..
any idea friends
» PHP Forum Archive » General Web Development Forum
Message was not sentMailer Error: Language string failed to load: recipients_failed testtest@gmail.com
friends am using phpmail ..
when i submit the form ,
this error is throwing ..
any idea friends
do you checked the phpmailer forum? Do you checked Google for similar errors?
Quote from: Olaf
"do you checked the phpmailer forum? Do you checked Google for similar errors?"
yes i have google searched,,
there also simplar to my errors,,
but they are given some solution ..
that solution are not solved my problem..
how do you send the mail? SMTP?
is this a valid email address? testtest@gmail.com
Quote from: Olaf
"how do you send the mail? SMTP?
is this a valid email address? testtest@gmail.com"
dear am tested in my localmachine ..
in mylocalhost..showed that error
shal i post the code
than is the problem very easy: you don't have a mail server :D
<form action="" method="post">
<input name="btn_submit" type="submit" value="Submit">
</form>
<?
require('phpmailer/class.phpmailer.php');
if(isset($_POST['btn_submit'])){
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->Host = "mail.test.com";
$mail->SMTPAuth = true;
$mail->Username = "test@test.com";
$mail->Password = "test";
$mail->From = "no-reply$test.com";
$mail->FromName = "test";
$mail->AddReplyTo("no-reply$test.com");
$mail->AddAddress("testetest@gmail.com");
$mail->IsHTML(true);
$mail->Subject = "Test message sent using the PHPMailer component";
$mail->Body = "This is a test message.";
$mail->Send();
$mail->IsMail();
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
}
?>
this is the code am using
thanks for reponse
i solved that phpmailer problem
$mail->From = "no-reply$test.com";
i given the
$mail->From = "no-reply@test.com";
to problem solved
you should check your code much more ;)
Quote from: Olaf
"you should check your code much more ;)"
may i know y ..is there any other error..
does this looks like an email address?
no-reply$test.com