当我在 phpmailer 的消息正文中放置“&email&”时,输出消息将“&email&”更改为 $to 数组中的电子邮件地址。但它只使用第一封电子邮件,它确实看到了其余的。我如何使它获得其余的电子邮件并将其相应地放置到电子邮件消息中?
$nq=0;
for($x=0; $x<$numemails; $x++)
{
$to = $allemails[$x];
if ($to)
{
$to = ereg_replace(" ", "", $to);
$message = ereg_replace("&email&", $to, $message);
$subject = ereg_replace("&email&", $to, $subject);
$qx=$x+1;
print "Line $qx . Sending mail to $to.......";
flush();
}
}
=== 我不能在下面发布图片链接:
http://filevault.org.uk/testee/mailer_image.png
希望你现在明白了。