您的位置:首页 > 编程语言 > PHP开发

php发邮件给多个人

2016-07-13 15:23 567 查看
$to = 'stanguan@megainformationtech.com,dylandai@megainformationtech.com';
$subject = 'count of upd files less than time span';
$message = AFFILIATE_NAME."_".AFFID.'=> lost upd files: '.implode(',',$lostUpdWithDatArr);
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
$headers .= 'From: <stats@megainformationtech.com>'. "\r\n";
$result = mail($to, $subject, $message, $headers);
当发邮件给多个人的时候,用逗号隔开即可
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: