php发邮件给多个人

来源:互联网 发布:手机信号干扰软件下载 编辑:程序博客网 时间:2024/04/28 05:21
        $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);
当发邮件给多个人的时候,用逗号隔开即可
0 0
原创粉丝点击