脚本发送许多电子邮件
问题描述:
我想一个网页的内容发送到我的邮箱......所以我要把这个代码脚本发送许多电子邮件
<?php
$to = '[email protected]';
$subject = 'JYBExpo Report';
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=utf-8\r\n";
$message = file_get_contents('http://jybexpo.com/cms/?page_id=53&print=1');
mail($to, $subject, $message, $headers);
?>
但是这个代码给我发了20多个电子邮件
如何让它只发送一封电子邮件? 任何人都可以帮助我吗?
你的意思是20份电子邮件?还是会将内容分解为20个部分,并向每个部分发送电子邮件? – Amyth 2012-08-15 05:33:40
20份....... – Hatim 2012-08-15 06:00:03