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 "發(fā)送郵件成功!"; }else{ echo "發(fā)送郵件失?。?quot;; } ?>
Effect display: