1
我有这个错误在PHP中:为什么我得到这个PHP梅勒语言错误?
语言字符串未能加载:recipients_failed
我的代码是:
$mail = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = "mail.escentrics.com"; // SMTP server
$mail->From = "[email protected]";
$mail->AddAddress($Email);
$mail->Subject = "Tradeworx Account Confirmation";
$mail->Body = "Hello $fname,
Account Information:
Username/Email: $email
Password: $password
To activate you account just go to this link: http://192.168.1.101/tradeworx/TWWebsite/index.php?page=Confirmation&id=$userid&confirmationcode=$confirmcode";
$mail->WordWrap = 100;
if(!$mail->Send())
{
echo 'Message was not sent.';
echo 'Mailer error: ' . $mail->ErrorInfo;
}
else
{
echo 'Message has been sent.';
谢谢你回答我发现了错误。 –
@Andro,错误是什么? '$电子邮件'变量或其他东西的情况? –
它只是变量名称。我应该使用的变量是$ email。它是我的坏事。 –