您现在的位置是:首页 > 教程 > ecshop商城教程ecshop商城教程
ecshop会员注册实现注册自动发送邮件验证码
以山2023-12-19 21:21:44ecshop商城教程已有人查阅
导读从数据库入手 用mysql管理工具找到 ecs_mail_templates 表插入一条 注册发送邮件的数据template_content 是邮件发邮件内容字段 根据自己的需要编辑不同的内容
从数据库入手 用mysql管理工具找到 ecs_mail_templates 表插入一条 注册发送邮件的数据
第二、在语言文件加入一行记录 找languages/zh_cn/admin/mail_template.php 打开 添加 $_LANG['send_reg'] = '注册确认模板';
第三、修改注册文件 打开 user.php 找到
show_message(sprintf($_LANG['register_success'], $username . "$user->ucdata"), $_LANG['profile_lnk'], 'user.php', 'info', true);
在前面插入:
INSERT INTO `ecs_mail_templates` (`template_id`, `template_code`, `is_html`, `template_subject`, `template_content`, `last_modify`, `last_send`, `type`) VALUES('', 'send_reg', 0, '注册确认', '{$user_name}您好!
\r\n
\r\n恭喜你注册为会员\r\n\r\n{$shop_name}\r\n{$send_date}', 1228373714, 0, 'template');
template_content 是邮件发邮件内容字段 根据自己的需要编辑不同的内容当然等你添加成功后 去后台邮件模板管理可以去做管理编辑。第二、在语言文件加入一行记录 找languages/zh_cn/admin/mail_template.php 打开 添加 $_LANG['send_reg'] = '注册确认模板';
第三、修改注册文件 打开 user.php 找到
show_message(sprintf($_LANG['register_success'], $username . "$user->ucdata"), $_LANG['profile_lnk'], 'user.php', 'info', true);
在前面插入:
$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']);
即:在(约233行)
$ucdata = empty($user->ucdata)? "" : $user->ucdata;
show_message(sprintf($_LANG['register_success'], $username . "$user->ucdata"), $_LANG['profile_lnk'], 'user.php', 'info', true);
之间插入以上代码。修改完毕注册测试去邮箱查看是否有新邮件,当然这个前提是我们的网站要可以发送邮件。
本文标签:
很赞哦! ()
相关文章
- ecshop会员列表,ecshop会员资料使用说明
- ecshop在线调查,ecshop会员访问在线调查
- ecshop会员等级,ecshop会员注册等级
- ecshop会员价格登陆才显示和只显示和自己等级相符合的价格
- ecshop会员注册成功以后自动升级为对应会员等级实例教程
- ecshop会员注册订单分成推荐设置说明教程
- ecshop导出会员,ecshop会员批量导出邮箱教程
- ecshop会员登录赠送等级积分和消费积分插件
- ecshop会员注册登陆或指定会员等级才可以才能看到的内容
- ecshop会员注册自动发送邮件欢迎信息修改方法
- ecshop会员用户登录超时自动退出怎么办
- ecshop会员整合ecshop与discuz论坛整合教程
随机图文
-
ecshop后台商品列表怎么显示会员等级价格
1、修改admin/includes/lib_goods.php的goods_list()函数部分在;2、修改模板文件admin/templates/goods_list.htm -
ecshop商城首页显示在线人数怎么添加
今天为大家详细解说一下ECSHOP商城首页显示在线人数添加方法,在ECSHOP中有在线人数的调用方法! -
ecshop前台英文后台中文怎么设置
通过后台设置实现前台英文。进入 后台 》系统设置 》商店设置 》基本设置,将系统语言选项设为 en_us ,确定保存。 -
ecshop商品删除后同时自动删除商品描述图的方法
ECSHOP商城默认删除商品时候不会同时删除商品描述里面图片,如果日积月累,这些没有用商品描述图片会占用服务器和空间大量容量,增加我们空间成本
留言与评论 (共有 条评论) |