这是我的代码
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
$headers .= "From: no-reply@domain.com\r\n";
$subject = SITE_TITLE ." Account Upgrade Email!";
$to_email = user@gmail.com,user@gmail.com,user@gmail.com;
mail($to_email, $subject, $message, $headers);
我将邮件发送到同一个电子邮件ID三次....
将发送三封不同的电子邮件,或者只发送一封电子邮件....
提前致谢
答案 0 :(得分:1)
您可以将其设为逗号分隔,请参阅to
参考mail('user@abc.com,user@xyz.com', $subject, $message, $headers);
Allow output folders for source folders
答案 1 :(得分:0)