Email.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. *
  7. * @copyright Copyright (c) 2016 FecShop Software LLC
  8. * @license http://www.fecshop.com/license/
  9. */
  10. return [
  11. 'email' => [
  12. /*
  13. 'mailerConfig' => [
  14. // 默认通用配置
  15. 'default' => [
  16. 'class' => 'yii\swiftmailer\Mailer',
  17. 'transport' => [
  18. 'class' => 'Swift_SmtpTransport',
  19. 'host' => 'smtp.qq.com', //SMTP Host
  20. 'username' => '2420577683@qq.com', //SMTP 账号
  21. 'password' => 'shrlkrtqsokwebjh', //SMTP 密码
  22. 'port' => '587', //SMTP 端口
  23. 'encryption' => 'tls',
  24. ],
  25. 'messageConfig'=> [
  26. 'charset'=> 'UTF-8',
  27. ],
  28. ],
  29. ],
  30. 'childService' => [
  31. 'customer' => [
  32. //注册账户是否需要邮件激活
  33. 'registerAccountIsNeedEnableByEmail' => false,
  34. //注册账户激活邮件的token的过期时间(秒),只有当 registerAccountIsNeedEnableByEmail 为true的时候有效。
  35. 'registerAccountEnableTokenExpire' => 86400,
  36. ],
  37. ],
  38. */
  39. ],
  40. ];