我用phpmailer发邮件   编译后老出现如下显示
Message could not be sent. 
Mailer Error: Language string failed to load: [email protected][email protected]
原代码如下    拿位大虾帮忙看看出错原因,谢谢先
--------------------------------------------------------------<?php
require("class.phpmailer.php");
$mail = new PHPMailer();$mail->IsSMTP();                                      // set mailer to use SMTP
$mail->Host = "smtp.mail.yahoo.com.cn";  // specify main and backup server
$mail->SMTPAuth = true;     // turn on SMTP authentication
//$mail->Username = "[email protected]";  // SMTP username
$mail->Password = "*********"; // SMTP password$mail->From = "[email protected]";
$mail->FromName = "nexteee";
$mail->AddAddress("[email protected]", "zhuxiaosheng");
$mail->AddAddress("[email protected]");                  // name is optional
$mail->AddReplyTo("[email protected]", "Information");$mail->WordWrap = 50;                                 // set word wrap to 50 characters
//$mail->AddAttachment("/var/tmp/file.tar.gz");         // add attachments
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg");    // optional name
$mail->IsHTML(true);                                  // set email format to HTML$mail->Subject = "Here is the subject";
$mail->Body    = "This is the HTML message body <b>in bold!</b>";
$mail->AltBody = "This is the body in plain text for non-HTML mail clients";if(!$mail->Send())
{
   echo "Message could not be sent. <p>";
   echo "Mailer Error: " . $mail->ErrorInfo;
   exit;
}echo "Message has been sent";
?>

解决方案 »

  1.   

    加一句
    $mail->SetLanguage("en", "C:/php/includes/phpmailer/language/");
      

  2.   

    添加了
    一样的结果
    Message could not be sent. 
    Mailer Error: Language string failed to load: [email protected]
      

  3.   

    $mail->Username = "[email protected]"            username好像“philzxs”就够了吧
      

  4.   

    还是不行 
    问题到底出在什么地方呢
    phpmailer类是从官方下载的可以保证没问题
    问题到底出在什么地方呢
      

  5.   

    $mail- >SetLanguage("en",   "C:/php/includes/phpmailer/language/")
    你的language文件夹下有文件吗?官方的这个文件夹是空地,你要自己找找。