send emailLOGIN

send email

Create a new index.php file

The code is as follows:

<?php
header("Content-Type:text/html;charset=utf-8");
require_once("./functions.php");
$flag = sendMail('3229571569@qq.com','欢迎加入php中文网学习',
    '<span style="color:skyblue;">欢迎加入php中文网学习</span><br/>');
if($flag){
    echo "发送邮件成功!";
}else{
    echo "发送邮件失败!";
}
?>

Effect display:

微信图片_20180310141356.png

微信图片_20180310142747.png

<?php echo "案例展示";
submitReset Code
ChapterCourseware