-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
root
authored and
root
committed
Mar 23, 2017
1 parent
facd559
commit 6c18bf0
Showing
2 changed files
with
7 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|
@@ -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' => [ | ||
|
@@ -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' => [] | ||
], | ||
|
||
], | ||
], | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters