PHP mail: Multiple recipients?

前端 未结 5 1667
暗喜
暗喜 2020-12-01 09:27

I have this code:



        
5条回答
  •  难免孤独
    2020-12-01 09:51

    while($row = mysql_fetch_array($result))
    {
        $addresses[] = $row['address'];
    }
    $to = implode(", ", $addresses);
    

    As specified on the mail() manual page, the "to" parameter of the function can take a comma-separated list of addresses.

提交回复
热议问题