<?php
header('content-type:text/html;charset=utf-8');
$mem=memcache_connect('127.0.0.1','11211');
$weather=$mem->get('weather');
$weather=json_encode($weather);
$cache=$mem->get('cache');
$cache=json_encode($cache);
var_dump($weather);
require './class.phpmailer.php';
$mail = new PHPMailer();
/*服务器相关信息*/
$mail->IsSMTP(); //设置使用SMTP服务器发送
$mail->SMTPAuth = true; //开启SMTP认证
$mail->Host = 'smtp.163.com'; //设置 SMTP 服务器,自己注册邮箱服务器地址
$mail->Username = 'm15201352029'; //发信人的邮箱名称
$mail->Password = 'a13461385600a'; //发信人的邮箱密码
/*内容信息*/
$mail->IsHTML(true); //指定邮件格式为:html
$mail->CharSet ="UTF-8"; //编码
$mail->From = '15201352029@163.com'; //发件人完整的邮箱名称
$mail->FromName = '游戏中心'; //发信人署名
$mail->Subject = "发送天气情况和新闻列表"; //信的标题
$mail->MsgHTML("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");//内容 //发信主体内容
/*发送邮件*/
$mail->AddAddress("a1228289802@163.com"); //收件人地址
$mail->AddAddress("1228289802@qq.com"); //收件人地址
//使用send函数进行发送
if($mail->Send()) {
echo 'ok ok';
} else {
echo $mail->ErrorInfo;//如果发送失败,则返回错误提示
}
header('content-type:text/html;charset=utf-8');
$mem=memcache_connect('127.0.0.1','11211');
$weather=$mem->get('weather');
$weather=json_encode($weather);
$cache=$mem->get('cache');
$cache=json_encode($cache);
var_dump($weather);
require './class.phpmailer.php';
$mail = new PHPMailer();
/*服务器相关信息*/
$mail->IsSMTP(); //设置使用SMTP服务器发送
$mail->SMTPAuth = true; //开启SMTP认证
$mail->Host = 'smtp.163.com'; //设置 SMTP 服务器,自己注册邮箱服务器地址
$mail->Username = 'm15201352029'; //发信人的邮箱名称
$mail->Password = 'a13461385600a'; //发信人的邮箱密码
/*内容信息*/
$mail->IsHTML(true); //指定邮件格式为:html
$mail->CharSet ="UTF-8"; //编码
$mail->From = '15201352029@163.com'; //发件人完整的邮箱名称
$mail->FromName = '游戏中心'; //发信人署名
$mail->Subject = "发送天气情况和新闻列表"; //信的标题
$mail->MsgHTML("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");//内容 //发信主体内容
/*发送邮件*/
$mail->AddAddress("a1228289802@163.com"); //收件人地址
$mail->AddAddress("1228289802@qq.com"); //收件人地址
//使用send函数进行发送
if($mail->Send()) {
echo 'ok ok';
} else {
echo $mail->ErrorInfo;//如果发送失败,则返回错误提示
}