Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

138 lines
4.3KB

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Mailer
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default mailer that is used to send any email
  9. | messages sent by your application. Alternative mailers may be setup
  10. | and used as needed; however, this mailer will be used by default.
  11. |
  12. */
  13. 'default' => env('MAIL_MAILER', 'smtp'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Mailer Configurations
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may configure all of the mailers used by your application plus
  20. | their respective settings. Several examples have been configured for
  21. | you and you are free to add your own as your application requires.
  22. |
  23. | Laravel supports a variety of mail "transport" drivers to be used while
  24. | sending an e-mail. You will specify which one you are using for your
  25. | mailers below. You are free to add additional mailers as required.
  26. |
  27. | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
  28. | "postmark", "log", "array", "failover"
  29. |
  30. */
  31. 'mailers' => [
  32. 'smtp' => [
  33. 'transport' => 'smtp',
  34. 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
  35. 'port' => env('MAIL_PORT', 587),
  36. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  37. 'username' => env('MAIL_USERNAME'),
  38. 'password' => env('MAIL_PASSWORD'),
  39. 'timeout' => null,
  40. 'local_domain' => env('MAIL_EHLO_DOMAIN'),
  41. 'auth_mode' => null,
  42. 'verify_peer' => false,
  43. // メールサーバーが古いTLSバージョンしか対応していない場合に接続できるようにする設定。
  44. // 通常は未設定(デフォルトのOpenSSLセキュリティレベル)で問題ない。
  45. 'stream' => array_filter([
  46. 'ssl' => array_filter([
  47. 'ciphers' => env('MAIL_TLS_CIPHERS') ?: null,
  48. ]),
  49. ]),
  50. ],
  51. 'ses' => [
  52. 'transport' => 'ses',
  53. ],
  54. 'mailgun' => [
  55. 'transport' => 'mailgun',
  56. // 'client' => [
  57. // 'timeout' => 5,
  58. // ],
  59. ],
  60. 'postmark' => [
  61. 'transport' => 'postmark',
  62. // 'client' => [
  63. // 'timeout' => 5,
  64. // ],
  65. ],
  66. 'sendmail' => [
  67. 'transport' => 'sendmail',
  68. 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
  69. ],
  70. 'log' => [
  71. 'transport' => 'log',
  72. 'channel' => env('MAIL_LOG_CHANNEL'),
  73. ],
  74. 'array' => [
  75. 'transport' => 'array',
  76. ],
  77. 'failover' => [
  78. 'transport' => 'failover',
  79. 'mailers' => [
  80. 'smtp',
  81. 'log',
  82. ],
  83. ],
  84. ],
  85. /*
  86. |--------------------------------------------------------------------------
  87. | Global "From" Address
  88. |--------------------------------------------------------------------------
  89. |
  90. | You may wish for all e-mails sent by your application to be sent from
  91. | the same address. Here, you may specify a name and address that is
  92. | used globally for all e-mails that are sent by your application.
  93. |
  94. */
  95. 'from' => [
  96. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  97. 'name' => env('MAIL_FROM_NAME', 'Example'),
  98. ],
  99. /*
  100. |--------------------------------------------------------------------------
  101. | Markdown Mail Settings
  102. |--------------------------------------------------------------------------
  103. |
  104. | If you are using Markdown based email rendering, you may configure your
  105. | theme and component paths here, allowing you to customize the design
  106. | of the emails. Or, you may simply stick with the Laravel defaults!
  107. |
  108. */
  109. 'markdown' => [
  110. 'theme' => 'default',
  111. 'paths' => [
  112. resource_path('views/vendor/mail'),
  113. ],
  114. ],
  115. 'developmentEmail' => env('MAIL_ADDRESS_DEVELOPMENT'),
  116. 'bcc_targets' => explode(",", env('MAIL_BCC_TARGETS', '')),
  117. ];