欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码

ecshop会员注册自动发送邮件欢迎信息修改方法

时间: 2024-02-25 10:43 阅读: 作者:素材无忧网

步骤一: 数据库->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}的会员!
请您在发表言论时,遵守当地法律法规。

如果您有什么疑问可以联系管理员,Email: 123546@qq.com。
{$shop_name}
{$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']);

版权声明: 本站资源均来自互联网或会员发布,如果侵犯了您的权益请与我们联系,我们将在24小时内删除!谢谢!

转载请注明: ecshop会员注册自动发送邮件欢迎信息修改方法

标签: ecshop会员  
相关文章
推荐文章
模板推荐