PHP实现信息链接发发送
PHP实现信息链接发发送
需要的包
从 github 上下载: https://github.com/PHPMailer/PHPMailer/
打开email.php email.php 为发送信息的主要php文件.
email.php
<?php
/*发送邮件方法
*@param $to:接收者 $title:标题 $content:邮件内容
*@return bool true:发送成功 false:发送失败
*/
php qq邮箱信息发送 解决中文乱码 解决链接问题 解决数据库存储。 信息发送
header('content-type:text/html;charset=utf-8');
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/plain; charset=utf-8\r\n";
$headers .= "Content-Transfer-Encoding: 8bit\r\n";
function sendMail($to,$title,$content