Skip to content

Commit

Permalink
一些配置的更改
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Mar 23, 2017
1 parent facd559 commit 6c18bf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 63 deletions.
68 changes: 6 additions & 62 deletions app/appfront/config/modules/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,32 +17,7 @@
'loginSuccessRedirectUrlKey' => 'customer/account',
# 注册页面的验证码是否开启
'registerPageCaptcha' => true,
# 注册账号后发送的邮件信息。
'email' => [
'enable' => true,
# 邮件内容的动态数据提供部分
'block' => 'fecshop\app\appfront\modules\Customer\block\mailer\account\register\EmailBody',
# 邮件内容的view部分
'viewPath' => 'mailer/customer/account/register',
/*
'mailerConfig' => [
'appfront_register' => [
'class' => 'yii\swiftmailer\Mailer',
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.qq.com',
'username' => '[email protected]',
'password' => 'bjxpkyzfwkxnebai',
'port' => '587',
'encryption' => 'tls',
],
'messageConfig'=>[
'charset'=>'UTF-8',
],
],
],
*/
]

],
'login' => [
# 在登录页面 customer/account/login 页面登录成功后跳转的urlkey,
Expand All @@ -52,25 +27,12 @@
# 登录页面的验证码是否开启
'loginPageCaptcha' => false,
# 邮件信息,登录账号后是否发送邮件
'email' => [
'enable' => false,
# 邮件内容的动态数据提供部分
'block' => 'fecshop\app\appfront\modules\Customer\block\mailer\account\login\EmailBody',
# 邮件内容的view部分
'viewPath' => 'mailer/customer/account/login',
# 如果不定义 mailerConfig,则会使用email service里面的默认配置
]

],
'forgotPassword' => [
# 忘记密码页面的验证码是否开启
'forgotCaptcha' => true,
'email' => [
'block' => 'fecshop\app\appfront\modules\Customer\block\mailer\account\forgotpassword\EmailBody',
# 邮件内容的view部分
'viewPath' => 'mailer/customer/account/forgotpassword',
# 如果不定义 mailerConfig,则会使用email service里面的默认配置

//'mailerConfig' => []
],

],

'leftMenu' => [
Expand All @@ -86,28 +48,10 @@
'contacts' => [
# 联系我们页面的验证码是否开启
'contactsCaptcha' => true,
'email' => [
# 联系我们的邮箱地址
'address' => '[email protected]',
# block 邮件动态数据提供部分。
'block' => 'fecshop\app\appfront\modules\Customer\block\mailer\contacts\EmailBody',
# 邮件内容的view部分
'viewPath' => 'mailer/customer/contacts',
# 如果不定义 mailerConfig,则会使用email service里面的默认配置
//'mailerConfig' => []
],

],
'newsletterSubscribe' => [
'email' => [
# 订阅邮件成功后,是否发送邮件给用户
'enable' => true,
# block 邮件动态数据提供部分。
'block' => 'fecshop\app\appfront\modules\Customer\block\mailer\newsletter\EmailBody',
# 邮件内容的view部分
'viewPath' => 'mailer/customer/newsletter',
# 如果不定义 mailerConfig,则会使用email service里面的默认配置
//'mailerConfig' => []
],

],
],
],
Expand Down
2 changes: 1 addition & 1 deletion config/services/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @link http://www.fecshop.com/
* @copyright Copyright (c) 2016 FecShop Software LLC
* @license http://www.fecshop.com/license/
*/
*/
return [
'email' => [
'class' => 'fecshop\services\Email',
Expand Down

0 comments on commit 6c18bf0

Please sign in to comment.