food stamp fraud lawyer 腾讯的QQ空间在国内实在太流行了,弄的我也没办法,我不喜欢那个界面,尤其是很多的js加载起来太慢了,不过谁让人家用户群多呢,我就在想办法把这个博客和QQ空间同步起来。WordPress有个插件是利用了QQ空间的邮件发布功能来实现同步的,名字叫做Post2Qzone。不过这个插件貌似已经不再维护了,如果你现在用他,那么他会告诉你smtp服务器连接不上,这是因为原来的版本中他没有用ssl协议连接smtp服务器。所以我们来改一下参数就好了。首先进入编辑插件的界面,编辑那个叫做post2qzone.php的文件。找到那个名为sendPostByPhpMailer的函数。
QZone, developed by Tencent Inc., is a widely used web application in China. Many small web applications are integrated in it. Blog module is also one of them. After being tired of importing my posts from taubau.info to my QZone manually, I found the WordPress plugin called Post2QZone. It makes use of the function of posting via email(QQMail) supplied by QZone. That is to say, you should enable the smtp function of your QQMail. But it’s no longer maintained by its author. Several parameters have to be added before you can use it. Try to edit the main file of the plugin (post2qzone.php). Find the function with the name of sendPostByPhpMailer:


function sendPostByPhpMailer($qq, $qqpw, $bcc, $title, $body){
global $debug;
if ( !class_exists('PHPMailer') ) {
require_once ABSPATH . WPINC . '/class-phpmailer.php';
require_once ABSPATH . WPINC . '/class-smtp.php';
}
$mail = new PHPMailer();
$mail->SMTPDebug = $debug;

$mail->IsSMTP();
$mail->Mailer = "smtp";
$mail->CharSet = 'utf-8';
$mail->Encoding = 'base64';
$mail->IsHTML(true);
$mail->SMTPAuth = true;
$mail->Host = "smtp.qq.com";
$mail->Username = $qq;
$mail->Password = $qqpw;
$mail->From = $qq.""
$mail->FromName = $qq;
$mail->Port = 465;
$mail->SMTPSecure = "ssl";

// $mail->AddAddress($qq."");
// if(!empty($bcc)) {
// $mail->AddAddress($bcc);
// }

$recipients = array();
$recipients[] = $qq."";
$recipients[] = $bcc;

foreach ($recipients as $recipient) {
if(!empty($recipient)) {
$mail->ClearAllRecipients(); // remove previously set addresses.
$mail->ClearReplyTos();
$mail->AddAddress($recipient);
$mail->Subject = $title;
$mail->Body = $body;

 

if($debug) {
echo "标题: [".$title."]
";
echo "内容: [".$body;
echo "
]-------------------
使用账号:
";
echo $qq."抄送到:".$bcc."
";
echo "
发送结果:
".$mail->Send();
echo "
----------------------
Debug结束, 请检查内容是否发布到QQ或指定抄送邮箱";
exit();
}else {
$mail->Send();
}
}
}
}
?>

向这个函数里面加入两行代码,就是给两个参数赋值,复制下面的代码,具体的黏贴位置参照上面代码中粗体字的位置:
Add two parameters to the function (in bold font, above):

$mail->Port = 465;
$mail->SMTPSecure = "ssl"

这篇日志已经可以在我的QQ空间里面找到了吧:)
Then everything should work well.

Enhanced by Zemanta
Jian Yang liked this post
 

上次在校内还是哪里看到,不加www.就访问不到网站的网管上辈子都是折翼的天使。所以今天趁着捣鼓DNS的机会,我把这个问题解决了。方法就是添加一条CNAME记录,将taubau.info的应答结果设置为www.taubau.info;这样就ok了。

As seen from renren.com or douban.com, someone said the webmaster of a site, which couldn’t be accessed through a domain name without the prefix of www., was a angel with broken wings in his/her last life. So I had a try to solve this problem and with a CNAME record. Just take my blog as the example,
add a CNAME record of taubau.info, the answer is expected to be www.taubau.info.
Then, enjoy your accessing with a shorten domain name!

 

    一株蟹爪兰,据说不用很精心照顾,也不用那么勤快的浇水,已经入住第四天了,恰逢我的BLOG重新复活。我的BLOG和这株蟹爪兰,加油哈~

DSC_0500 DSC_0510 DSC_0512 DSC_0515

关于她的后续成长历程,敬请关注www.iamtaoke.cn,^.^

 

    原本以为,自己花钱买个空间,经济上的花费会让自己稍微上心一些,不过好像这个愿景已经破碎了。小波的转播站要转型了,同时告诉我们,回归的代价将是非常高昂的,当然是指时间上的代价。不过,长期缺乏写作锻炼并加之写各种模式化的总结、申请书等的影响,我的文字能力已经严重退化;像样的文字要从我的笔下写出已经不大可能。我所留下最多的文字估计就是在论坛上与人争论的只言片语,如果写过1000字,估计那就不能看了。既然意识到问题,我就想想怎么来锻炼一下吧:

    如果老师那里所谓的学术任务不是太缠人的话,每周应该写点儿读书笔记;嗯,我觉得应该少看点儿原来看过的经典电视剧了,守旧的情怀大概就是这么一点点儿培养出来的,非常不好。

那么,这是第一点,做好开始吧,我们再一点儿点儿地加:)

 

用了一个下午的时间,我终于申请到了一个虚拟主机,mq35提供的,还不错的说,59块钱300M(搞活动才会这么便宜的,要不然才不会呢……续费的时候估计就要傻眼了)……

现在域名大概还没有生效,我的站点访问地址应该是http://www.iamtaoke.cn/wordpress,是不是只有blog,我还咩有做决定,先就这样吧~~呵呵,大家常来哈~~~

© 2012 TAO Ke's Blog Suffusion theme by Sayontan Sinha
Sitemap