我遇到了一个 PHP 邮件命令的问题当我去处理它时,它只是返回一个错误页面..(不是 SQL)
到目前为止,这是我的代码
$getdisputes = mysql_query("SELECT * FROM `disputedetails` WHERE `invno` = '$invoiceno'") or die(mysql_error());
//send email
$to = "".$disputeemail."";
$subject = "Dispute submitted";
$from = "NO_REPLY@noreply.dassdf.com"
$headers = "From:" . $from;
$message1 = "Store ".$username. " has submitted a dispute on invoice number ".$invoiceno;
// foreach line in disputedetails file for that invoice number, add to $message item, desc and
while ($info = mysql_fetch_array($getdisputes)) {
$message = $message1 + "\n <b>Invoice Number: </b>".$info['invno']." <b>Item ID:</b> ".$info['itemid']." <b>Description: </b>".$info['description']." <b>Disputed Quantity:</b> ".$info['disputeqty']." Reason: ".$info['reason'].".";
}
mail($to,$subject,$message,$headers);
关于导致问题的任何想法?