mail.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | LARAVEL8.0 框架 [ LARAVEL ][ RXThinkCMF ]
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2017~2021 LARAVEL研发中心
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://www.laravel.cn
  8. // +----------------------------------------------------------------------
  9. // | Author: laravel开发员 <laravel.qq.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. /*
  13. |--------------------------------------------------------------------------
  14. | Default Mailer
  15. |--------------------------------------------------------------------------
  16. |
  17. | This option controls the default mailer that is used to send any email
  18. | messages sent by your application. Alternative mailers may be setup
  19. | and used as needed; however, this mailer will be used by default.
  20. |
  21. */
  22. 'default' => env('MAIL_MAILER', 'smtp'),
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Mailer Configurations
  26. |--------------------------------------------------------------------------
  27. |
  28. | Here you may configure all of the mailers used by your application plus
  29. | their respective settings. Several examples have been configured for
  30. | you and you are free to add your own as your application requires.
  31. |
  32. | Laravel supports a variety of mail "transport" drivers to be used while
  33. | sending an e-mail. You will specify which one you are using for your
  34. | mailers below. You are free to add additional mailers as required.
  35. |
  36. | Supported: "smtp", "sendmail", "mailgun", "ses",
  37. | "postmark", "log", "array"
  38. |
  39. */
  40. 'mailers' => [
  41. 'smtp' => [
  42. 'transport' => 'smtp',
  43. 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
  44. 'port' => env('MAIL_PORT', 587),
  45. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  46. 'username' => env('MAIL_USERNAME'),
  47. 'password' => env('MAIL_PASSWORD'),
  48. 'timeout' => null,
  49. 'auth_mode' => null,
  50. ],
  51. 'ses' => [
  52. 'transport' => 'ses',
  53. ],
  54. 'mailgun' => [
  55. 'transport' => 'mailgun',
  56. ],
  57. 'postmark' => [
  58. 'transport' => 'postmark',
  59. ],
  60. 'sendmail' => [
  61. 'transport' => 'sendmail',
  62. 'path' => '/usr/sbin/sendmail -bs',
  63. ],
  64. 'log' => [
  65. 'transport' => 'log',
  66. 'channel' => env('MAIL_LOG_CHANNEL'),
  67. ],
  68. 'array' => [
  69. 'transport' => 'array',
  70. ],
  71. ],
  72. /*
  73. |--------------------------------------------------------------------------
  74. | Global "From" Address
  75. |--------------------------------------------------------------------------
  76. |
  77. | You may wish for all e-mails sent by your application to be sent from
  78. | the same address. Here, you may specify a name and address that is
  79. | used globally for all e-mails that are sent by your application.
  80. |
  81. */
  82. 'from' => [
  83. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  84. 'name' => env('MAIL_FROM_NAME', 'Example'),
  85. ],
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Markdown Mail Settings
  89. |--------------------------------------------------------------------------
  90. |
  91. | If you are using Markdown based email rendering, you may configure your
  92. | theme and component paths here, allowing you to customize the design
  93. | of the emails. Or, you may simply stick with the Laravel defaults!
  94. |
  95. */
  96. 'markdown' => [
  97. 'theme' => 'default',
  98. 'paths' => [
  99. resource_path('views/vendor/mail'),
  100. ],
  101. ],
  102. ];