zblog
当前位置:首页 > 商学院 > zblog > 正文内容

zblog

zblogphp邮箱营销实用工具

豫唐网络2017-05-11 15:553881

邮件营销(Email Marketing)是在用户事先许可的前提下,通过电子邮件的方式向目标用户传递有价值信息的一种网络营销手段。Email营销有三个基本因素:用户许可、电子邮件传递信息、信息对用户有价值。三个因素缺少一个,都不能称之为有效的邮件营销。是利用电子邮件与受众客户进行商业交流的一种直销方式。同时也广泛的应用于网络营销领域。邮件营销是网络营销手法中最古老的一种,邮件营销比绝大部分网站推广和网络营销手法都要老。

先看下用户接收到邮箱以后的效果。

22.png


使用方法(懒的做插件了):

在网站跟目录创建一个php文字,名字随意。比如“ytecn.php”。

<?php
require'zb_system/function/c_system_base.php';
require'zb_system/function/c_system_admin.php';
$zbp->Load();?>
<styleclass="fox_global_style">
div.fox_html_content{line-height:1.5;}
p{margin-top:0px;margin-bottom:0px;}
</style>
<divid="contentDiv"style="position:relative;font-size:14px;width:710px;height:auto;margin:8px10px;padding:0px010px;overflow:hidden;font-family:'MicrosoftYaHei',Verdana,'Simsun';background-color:#fff;">
<divid="mailContentContainer"style="font-size:14px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;height:auto;font-family:'lucidaGrande',Verdana;">
<divstyle="font-size:14px;font-family:Verdana,Arial,Helvetica,sans-serif;color:#000;line-height:160%;background:#fff;">
<divclass="itemList">
<?php
$array=GetList(10);
foreach($arrayas$article){
$temp=mt_rand(1,4);
$pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png]))[\'|\"].*?[\/]?>/";
$content=$article->Content;
preg_match_all($pattern,$content,$matchContent);
if(isset($matchContent[1][0]))$temp=$matchContent[1][0];else$temp=$zbp->host."img/$temp.jpg";
?>
<divstyle="border:#e4e4e4solid1px;background-color:#fff;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;padding:0px21px;margin-bottom:10px;">
<divstyle="clear:left;">
</div>
<divstyle="clear:left;">
</div>
<inputtype="hidden"value="10"id="itemSizeId">
<divclass="item"style="font-family:'MicrosoftYaHei',Verdana,'Simsun';position:relative;background-color:rgb(255,255,255);padding:25px00px0;">
<spanclass="itemtool"style="position:absolute;top:20px;right:0px;height:22px;line-height:22px;">
<ahref="<?phpecho$article->Url;?>"class="showItemClass"style="display:inline-block;padding:0;margin:00010px;color:#1a75ca;text-decoration:none;cursor:pointer;">
<?phpecho$article->Time('Y年m月d日H:i:s');?>&nbsp;
</a>
<atitle="阅读全文"class="allTextClick"href="<?phpecho$article->Url;?>"
target="_blank"style="display:inline-block;padding:0;margin:00010px;color:#1a75ca;text-decoration:none;cursor:pointer;">
阅读全文&nbsp;
</a>
</span>
<h2style="padding:0;margin:-5px0px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:90%;width:480px;margin-bottom:8px;">
<ahref="<?phpecho$article->Url;?>"
target="_blank"style="text-decoration:none;">
<spanclass="item_title_down"id="itemNameId_5421673"param="5421673"
style="font-size:16px;cursor:pointer;text-decoration:none;color:#444;font-weight:bold;">
<?phpechohtmlspecialchars($article->Title);?>
</span>
</a>
</h2>
<divclass="openup_department"style="height:1px;width:710px;background:#eee;position:absolute;top:88px;left:-30px;z-index:10;display:none;">
</div>
<divclass="digest"style="min-height:120px;line-height:160%;padding:3px015px0;color:#494949;font-family:'MicrosoftYaHei',Verdana,'Simsun';"param="5439853"id="itemdigest_5439853">
<divclass="item_title_down"param="5439853"style="width:140px;height:100px;border:1pxsolid#EBEBEB;text-align:center;float:right;margin-top:7px;"id="itemImg_5439853">
<imgwidth="140"height="100"src="<?phpecho$temp;?>"id="thumb_5439853"style="cursor:pointer;">
</div>
<divstyle="float:left;margin-top:0px;">
<divstyle="word-wrap:break-word;">
<spanid="itemsummary_5439853"style="line-height:28px;display:block;width:505px;">
<?phpecho$article->Intro;?>
</span>
</div>
</div>
<divstyle="clear:left;"></div>
</div>
</div>
</div>
<?php
}
?>
</div>
<divstyle="clear:left;">
</div>
<divstyle="background:#f7f7f7;height:30px;line-height:30px;text-align:center;border:1pxsolid#e6e6e6;margin-bottom:10px;">
<ahref="#"cid="38601"id="usSubBottom"style="color:#175fa2;text-decoration:none;">邮件太多,不再接收《<?phpecho$zbp->name;?>》的订阅邮件,点击残忍“退订”。</a>
</div>
</div>
</div>
</div>

然后,在根目录创建文件夹“img”,里面放4张随机图片,命名为1.jpg、2.jpg、3.jpg、4.jpg。当问题没有图片的时候使用。

然后,重点。。

打开邮箱,点击发送邮件,导入邮箱联系人列表。

然后,自定义一个标题。

内容,选中HTML格式。

然后,通过浏览器打开你的 域名/ytecn.php。右键,查看源代码。全选,复制。

然后,粘贴到你的右键内容里面。

然后,发送。

扫描二维码推送至手机访问。

版权声明:本文由汤阴县豫唐网络科技有限公司发布,如需转载请注明出处。

本文链接:https://www.ytecn.com/post/56.html

分享给朋友:

相关文章

Call to undefined function mysql_connect()

Call to undefined function mysql_connect()

今天给某个站搬家,zblogphp程序,原站环境是php5.6,这次配的环境是7.1。然后搬家后,提示然后,惯例,先查看数据库账户密码是否正确。经测试,信息无误。然后呢。。发现配置文件好像挺复杂。这个...

zblog商业授权

zblog商业授权

zblog的商用链接,已与2022年01月28从官网移除,git开源协议MIT。如你依然不放心,可以找豫唐购买授权服务。豫唐是zblog的指定授权商之一。Z-Blog 授权价格及服务支持版本授权许可:...

GetList获取的文章怎么过滤某个分类

GetList获取的文章怎么过滤某个分类

通过 GetList 可以获取自定义的文章列表,他可以通过分类、作者、时间、标签、搜索、置顶、随机等等手段自由组合出你要的文章列表。过滤某个分类的代码如下(为了更加方便使用,我把实例做了下拆分处理)。...

学习zblog主题模板制作需要提前掌握什么知识

学习zblog主题模板制作需要提前掌握什么知识

学习网站主题模板制作需要提前掌握什么知识?1、学会购买域名2、学会购买服务器(或空间)3、学会安装zblog程序;4、学习并掌握 vscode 代码远程同步功能,可以实现本地操作上面的zblog程序代...

zblog的面包屑路径怎么调用

zblog的面包屑路径怎么调用

文章页调用面包屑当前位置:<ahref="{$host}">首页</a> {php} $html=''; functionnavcat...

zblog分类页展示子分类内容

zblog分类页展示子分类内容

zblog默认情况下,当某个分类有子分类的时候,访问大分类页面的时候是不显示下面分类的文章内容。如需实现分类页展示子分类内容,需要在后台进行配置,配置方法如下:1、进入网站后台;2、点击右上的《网站设...