add_filter('wp_mail_content_type',create_function('', 'return "text/html";'));
add_filter('wp_mail_content_type', 'sola520_use_html');
function sola520_use_html( $content_type ) {
if( '你的条件' )
return 'text/html';
else
return $content_type;
}
$headers = "MIME-Version: 1.0\n" . "Content-Type: text/html;";
wp_mail('[email protected]', 'The subject', '<p>The <em>HTML</em> message</p>', $headers);
以上就是安达网络工作室关于《WordPress中发送HTML邮件的方法》的一些看法。更多内容请查看本栏目更多内容!
调用最新文章: 复制代码代码如下: <ul> <?php $post_query = new WP_Query(‘showposts=10′); ...
本文实例讲述了在wordpress中利用cos-html-cache 2.7.3插件来完成Wordpress页面动态化的办法以及动态文件不...
WordPress是当今最盛行的建站博客顺序,性能弱小,上手容易,各种主题和插件等应有尽有,无关Wordpress的相...
但惋惜的是,目前wordpress主题中95%以上是本国人写的,其设计是基于东方文字的,中国的blogger将这些主题拿...
本文是简略易懂的古代魔法系列文章的第二弹~ 一、Flowplayer简介 FlowPlayer 是一个用Flash开发的在Web上的...
the_post_thumbnail the_post_thumbnail 在 WordPress 中次要用来打印文章中设定的缩略图,而 get_the_post...