您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop会员注册自动发送邮件欢迎信息修改方法
简务2024-01-16 20:27:17ecshop商城教程已有人查阅
导读 步: 数据库->ecs_mail_templates邮件模板表中插入一条注册发送邮件的记录。INSERT INTO ecs_mail_templates
步骤一: 数据库->ecs_mail_templates邮件模板表中插入一条注册发送邮件的记录。
INSERT INTO ecs_mail_templates (template_id, template_code, is_html, template_subject, template_content, last_modify, last_send, type) VALUES ('', 'send_reg', '1', 'ECSHOP代码号-欢迎信息', '尊敬的{$user_name},感谢您注册成为{$shop_name}的会员! <br />请您在发表言论时,遵守当地法律法规。<br />
如果您有什么疑问可以联系管理员,Email: 123546@qq.com。<br />{$shop_name}<br />{$send_date}', '13888888888', '0', 'template');
第二步:在语言文件 languages/zh_cn/admin/mail_template.php /* 模板描述 */下添加
$_LANG['send_reg'] = '欢迎信息模板';
第三步:增加PHP处理逻辑
flow.php和user.php中均有会员注册逻辑,所以这两个文件都要增加邮件发送代码
flow.php 大概286行->elseif (!empty($_POST['act']) && $_POST['act'] == 'signup') 里面增加如下代码:
INSERT INTO ecs_mail_templates (template_id, template_code, is_html, template_subject, template_content, last_modify, last_send, type) VALUES ('', 'send_reg', '1', 'ECSHOP代码号-欢迎信息', '尊敬的{$user_name},感谢您注册成为{$shop_name}的会员! <br />请您在发表言论时,遵守当地法律法规。<br />
如果您有什么疑问可以联系管理员,Email: 123546@qq.com。<br />{$shop_name}<br />{$send_date}', '13888888888', '0', 'template');
第二步:在语言文件 languages/zh_cn/admin/mail_template.php /* 模板描述 */下添加
$_LANG['send_reg'] = '欢迎信息模板';
第三步:增加PHP处理逻辑
flow.php和user.php中均有会员注册逻辑,所以这两个文件都要增加邮件发送代码
flow.php 大概286行->elseif (!empty($_POST['act']) && $_POST['act'] == 'signup') 里面增加如下代码:
/* 注册会员邮件欢迎 */$tpl = get_mail_template('send_reg');$smarty->assign('shop_name', $_CFG['shop_name']);$smarty->assign('send_date', date($_CFG['time_format']));$smarty->assign('user_name',$username);$content = $smarty->fetch('str:' . $tpl['template_content']);send_mail($_CFG['shop_name'], $email, $tpl['template_subject'], $content, $tpl['is_html']);
user.php 大概234行->/* 写入密码提示问题和答案 */这个判断的下面增加如下代码:
/* 注册会员邮件欢迎 */$tpl = get_mail_template('send_reg');$smarty->assign('shop_name', $_CFG['shop_name']);$smarty->assign('send_date', date($_CFG['time_format']));$smarty->assign('user_name',$username);$content = $smarty->fetch('str:' . $tpl['template_content']);send_mail($_CFG['shop_name'], $email, $tpl['template_subject'], $content, $tpl['is_html']);
本文标签:
很赞哦! ()
相关文章
- ecshop会员列表,ecshop会员资料使用说明
- ecshop在线调查,ecshop会员访问在线调查
- ecshop会员等级,ecshop会员注册等级
- ecshop会员价格登陆才显示和只显示和自己等级相符合的价格
- ecshop会员注册成功以后自动升级为对应会员等级实例教程
- ecshop会员注册订单分成推荐设置说明教程
- ecshop导出会员,ecshop会员批量导出邮箱教程
- ecshop会员登录赠送等级积分和消费积分插件
- ecshop会员注册登陆或指定会员等级才可以才能看到的内容
- ecshop会员用户登录超时自动退出怎么办
- ecshop会员整合ecshop与discuz论坛整合教程
- ecshop会员批量下单批量生成虚拟订单教程
随机图文
-
ecshop商品页购买记录显示所购商品属性方法
如果某个商品有好几个颜 ,正好赶上有个买家各种颜 都买了1个,而ECSHOP默认的销售记录没有属 这一项,这样就会出现连续好几条购买记录都是同一个买家的 -
ecshop后台设置模板排序让商品分类排序按数字大小排序
设置模板排序调用,从1开始;1、admin\includes\lib_template.php这样 cat_goods.lbi 里面能使用 $goods_cat.i 排序了 。 -
ecshop后台菜单使用说明介绍
ecshop后台菜单使用说明书,经常有客户问后台的一些菜单项都是干什么用的,怎么哪么多,今天就关于这个问题来详细的解释一下。 -
ecshop订单打印格式修改
大多数朋友意识可能会想到去模板文件夹(/themes/default/) 下找订单打印的模板文件,其实这个模板文件是在/data/目录下
留言与评论 (共有 条评论) |