我做了一个电子邮件脚本来邮寄由php查询提交的表格。它的作品,但我每次收到超过20倍的同一封电子邮件。但我根本找不到一个循环。谁能帮我?PHP脚本得到一个循环
<?php
require_once("view_orders.php");
$to = 'mymail';
$subject = 'Broodje bestelling';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Put your HTML here
$message = file_get_contents('http://myurl.com/order/mail.php', true);
// Mail it
return mail($to, $subject, $message, $headers);
?>
它是如何被调用的? –
你是怎么称呼这个脚本的? – qwertynl
你为什么做:返回邮件($ to,$ subject,$ message,$ headers); ? – sergio