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. 'mailerConfig' => [
  13. // 默认通用配置
  14. 'default' => [
  15. 'class' => 'yii\swiftmailer\Mailer',
  16. 'transport' => [
  17. 'class' => 'Swift_SmtpTransport',
  18. 'host' => 'smtp.qq.com', //SMTP Host
  19. 'username' => '2420577683@qq.com', //SMTP 账号
  20. 'password' => 'dshagrytvnwjeabb', //SMTP 密码
  21. 'port' => '587', //SMTP 端口
  22. 'encryption' => 'tls',
  23. ],
  24. 'messageConfig'=> [
  25. 'charset'=> 'UTF-8',
  26. ],
  27. ],
  28. ],
  29. 'childService' => [
  30. 'customer' => [
  31. /**
  32. * 注册账户是否需要邮件激活
  33. */
  34. 'registerAccountIsNeedEnableByEmail' => false,
  35. /**
  36. * 注册账户激活邮件的token的过期时间(秒),只有当 registerAccountIsNeedEnableByEmail 为true的时候有效。
  37. */
  38. 'registerAccountEnableTokenExpire' => 86400,
  39. ],
  40. ],
  41. ],
  42. ];