-
参考菜鸟手册
PHP
发送邮件
<?php
$to = "646448149@qq.com, q18135687871@icloud.com";
$subject = "HTML email";
// 主题内容
$message = "你好,你的验证码是";
// Always set content-type when sending HTML email
$headers = "MIME-版本: 1.0" . "rn";
$headers .= "Content-type:text/html;charset=iso-8859-1" . "rn";
// More headers
$headers .= '来自: webmaster@example.com';
$headers .= '抄送: myboss@example.com';
$res = mail($to,$subject,$message,$headers);
var_dump($res);
?>