PHP Forums Archive

php mailer problem Language string failed to load:

Tags: php mailer problem

bharanikumarphp posted on 2008-04-19 07:53:00 #

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

Comments / discussions

Olaf posted on 2008-04-19 07:55:13 #

do you checked the phpmailer forum? Do you checked Google for similar errors?

bharanikumarphp posted on 2008-04-19 08:29:52 #

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..

Olaf posted on 2008-04-19 09:05:20 #

how do you send the mail? SMTP?

is this a valid email address? testtest@gmail.com

bharanikumarphp posted on 2008-04-19 09:10:01 #

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

Olaf posted on 2008-04-19 09:41:01 #

than is the problem very easy: you don't have a mail server :D

bharanikumarphp posted on 2008-04-19 10:11:03 #

<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

bharanikumarphp posted on 2008-04-19 11:13:50 #

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

Olaf posted on 2008-04-19 11:22:05 #

you should check your code much more ;)

bharanikumarphp posted on 2008-04-19 11:40:11 #

Quote from: Olaf
"you should check your code much more ;)"

may i know y ..is there any other error..

Olaf posted on 2008-04-19 12:01:29 #

does this looks like an email address?

no-reply$test.com