企微短剧业务系统

mail.php 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Mail Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | Laravel supports both SMTP and PHP's "mail" function as drivers for the
  9. | sending of e-mail. You may specify which one you're using throughout
  10. | your application here. By default, Laravel is setup for SMTP mail.
  11. |
  12. | Supported: "smtp", "sendmail", "mailgun", "mandrill", "ses",
  13. | "sparkpost", "log", "array"
  14. |
  15. */
  16. 'driver' => env('MAIL_DRIVER', 'smtp'),
  17. /*
  18. |--------------------------------------------------------------------------
  19. | SMTP Host Address
  20. |--------------------------------------------------------------------------
  21. |
  22. | Here you may provide the host address of the SMTP server used by your
  23. | applications. A default option is provided that is compatible with
  24. | the Mailgun mail service which will provide reliable deliveries.
  25. |
  26. */
  27. 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
  28. /*
  29. |--------------------------------------------------------------------------
  30. | SMTP Host Port
  31. |--------------------------------------------------------------------------
  32. |
  33. | This is the SMTP port used by your application to deliver e-mails to
  34. | users of the application. Like the host we have set this value to
  35. | stay compatible with the Mailgun e-mail application by default.
  36. |
  37. */
  38. 'port' => env('MAIL_PORT', 587),
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Global "From" Address
  42. |--------------------------------------------------------------------------
  43. |
  44. | You may wish for all e-mails sent by your application to be sent from
  45. | the same address. Here, you may specify a name and address that is
  46. | used globally for all e-mails that are sent by your application.
  47. |
  48. */
  49. 'from' => [
  50. 'address' => env('MAIL_FROM_ADDRESS', 'song.shen@kuxuan-inc.com'),
  51. 'name' => env('MAIL_FROM_NAME', '猎羽'),
  52. ],
  53. /*
  54. |--------------------------------------------------------------------------
  55. | E-Mail Encryption Protocol
  56. |--------------------------------------------------------------------------
  57. |
  58. | Here you may specify the encryption protocol that should be used when
  59. | the application send e-mail messages. A sensible default using the
  60. | transport layer security protocol should provide great security.
  61. |
  62. */
  63. 'encryption' => env('MAIL_ENCRYPTION', 'ssl'),
  64. /*
  65. |--------------------------------------------------------------------------
  66. | SMTP Server Username
  67. |--------------------------------------------------------------------------
  68. |
  69. | If your SMTP server requires a username for authentication, you should
  70. | set it here. This will get used to authenticate with your server on
  71. | connection. You may also set the "password" value below this one.
  72. |
  73. */
  74. 'username' => env('MAIL_USERNAME'),
  75. 'password' => env('MAIL_PASSWORD'),
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Sendmail System Path
  79. |--------------------------------------------------------------------------
  80. |
  81. | When using the "sendmail" driver to send e-mails, we will need to know
  82. | the path to where Sendmail lives on this server. A default path has
  83. | been provided here, which will work well on most of your systems.
  84. |
  85. */
  86. 'sendmail' => '/usr/sbin/sendmail -bs',
  87. /*
  88. |--------------------------------------------------------------------------
  89. | Markdown Mail Settings
  90. |--------------------------------------------------------------------------
  91. |
  92. | If you are using Markdown based email rendering, you may configure your
  93. | theme and component paths here, allowing you to customize the design
  94. | of the emails. Or, you may simply stick with the Laravel defaults!
  95. |
  96. */
  97. 'markdown' => [
  98. 'theme' => 'default',
  99. 'paths' => [
  100. resource_path('views/vendor/mail'),
  101. ],
  102. ],
  103. ];