hi i use to send mail via php mailer.but when i send my on this particular id amit@mutants.in then this error come
Mailer Error: Language string failed to load: recipients_failedamit@mutants.in
but any oyher id my mail goes successfully.
i use thse code for ending mail
<?
$nrr=0;
include_once("class.phpmailer.php");
$sql="select email from seclogin";
$query=mysql_query($sql);
$rs=mysql_fetch_array($query);
$admemail=$rs["email"];
$err="";
echo $cdate=date("j F Y H:i");
$target=DOC_IMAGES."adimage/";
RecursiveMkdir($target);
if (isset($_POST['SubmitMail']))
{
if(isset($_POST['code']))
{
if($_SESSION['code'] == $_POST['code'] && !empty($_SESSION['code'] ))
{
$ad_image=$_FILES["imagename"]["name"];
$imagetype=$_FILES["imagename"]["type"];
$tempname=$_FILES["imagename"]["tmp_name"];
$imagename=$ad_image;
$sql="select heading from admgmt where heading='".$_POST['heading']."'";
$query=mysql_query($sql);
$nums=mysql_num_rows($query);
if ($nums==0)
{
if($imagetype=="image/jpg" || $imagetype=="image/jpeg" || $imagetype=="image/pjpeg" || $imagetype=="image/gif" || $imagetype=="application/x-shockwave-flash")
{
@move_uploaded_file($tempname,$target.$imagename);
}
//set the random id length
$random_id_length = 10;
$rnd_id = crypt(uniqid(rand(),1));
$rnd_id = strip_tags(stripslashes($rnd_id));
$rnd_id = str_replace(".","",$rnd_id);
$rnd_id = strrev(str_replace("/","",$rnd_id));
//finally I take the first 10 characters from the $rnd_id
$rnd_id = substr($rnd_id,0,$random_id_length);
$spassword=$rnd_id;
$rs_approval = mysql_query("SELECT approval FROM seclogin");
$row_approval=mysql_fetch_array($rs_approval);
$approval=$row_approval["approval"];
$sql="insert into admgmt(location,name,email,phone,hidephone,adtype,category,heading,city,adtext,imagelink,imagename,addate,approval,spassword,keywords) values('".mysql_real_escape_string($_POST["location"])."','".mysql_real_escape_string($_POST["name"])."','".mysql_real_escape_string($_POST["email"])."','".mysql_real_escape_string($_POST["phone"])."','".mysql_real_escape_string($_POST["hidephone"])."','".mysql_real_escape_string($_POST["adtype"])."','".mysql_real_escape_string($_POST["category"])."','".mysql_real_escape_string($_POST["heading"])."','".mysql_real_escape_string($_POST["city"])."','".mysql_real_escape_string($_POST["adtext"])."','".mysql_real_escape_string($_POST["imagelink"])."','".$imagename."','".$cdate."','".$approval."','".$spassword."','".mysql_real_escape_string($_POST["keyword"])."')";
mysql_query($sql) or die("error while inserting records");
//send mail starts here ....... added by 10 oct.
$message="<table width='80%' border='0' cellspacing='0' cellpadding='0'><tr>
<td colspan='2'><font size='3' face='Times New Roman, Times, serif'><strong>Dear, </font>".$_POST["name"]."</strong></td></tr><tr><td colspan='2'> </td></tr><tr><td colspan='2'>Thank You For Your Ad. Your Ad will be published when it has been approved. An auto generated password sent to you. Please keep it secure.</td></tr><tr><td colspan='2'><font size='3' face='Times New Roman, Times, serif'>Find your information below.</font></tr><tr>";
$message.="<tr><td width='10%'><font size='3' face='Times New Roman, Times, serif'><strong>Name: </strong></font></td><td width='90%'>".$_POST["name"]."</td></tr>";
$message.="<tr><td width='35%'><font size='3' face='Times New Roman, Times, serif'><strong>Secure password: </strong></font></td><td width='90%'>".$spassword."</td></tr>";
$message.="<tr><td colspan='2' align='center'><font size='3' face='Times New Roman, Times, serif'>Visit us at : www.amit.co.in</td></tr>";
$message.="<tr><td colspan='2' align='center'><font size='3' face='Times New Roman, Times, serif'>Thank For Using Our Site.</td></tr></table>";
$to = $_POST["email"];
$to_name = 'www.amit.co.in/';
$subject="Thanks for Place Ad with www.amit.co.in";
$content = $message;
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->SetLanguage('en');
// send via SMTP
$mail->Host = "mail.www.amit.co.in"; // SMTP servers
$mail->Port = 25;
$mail->Mailer="smtp";
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "user"; // SMTP username
$mail->Password = "pass"; // SMTP password
$mail->From = $admemail;
$mail->FromName = $admemail;
$mail->AddAddress($to,$to_name);
$mail->IsHTML(true); // send as HTML
$mail->Subject = $subject;
$mail->Body = $content;
//$mail->AddBCC('amit@mutants.in', 'amit');
$nrr=1;
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
}
else
{
echo '<div align=center>Yourr query is add successfully</div>';
}
}
else
{
echo '<div style="color: #FF0000;"><strong></strong> Enter code is invalid, Please try again!</div>';
}
}
}
}
?>
if any one can help me very thanks to him
MOD EDIT: [noparse]
[/noparse] BBcode tags added - please use these in the future when posting code. Also, SMTP login details removed (you probably shouldn't give the world your username and password).