mail.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. 'mailers' => [
  15. 'smtp' => [
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Mail Transport Driver
  19. |--------------------------------------------------------------------------
  20. |
  21. | Laravel supports a variety of mail "transport" drivers to be used while
  22. | sending an e-mail. You will specify which one you are using for this
  23. | mailer here. The mailer is configured to send via SMTP by default.
  24. |
  25. | Supported: "smtp", "sendmail", "mailgun", "ses",
  26. | "postmark", "log", "array"
  27. |
  28. */
  29. 'transport' => env('MAIL_TRANSPORT', 'smtp'),
  30. /*
  31. |--------------------------------------------------------------------------
  32. | SMTP Host Address
  33. |--------------------------------------------------------------------------
  34. |
  35. | Here you may provide the host address of the SMTP server used by your
  36. | applications. A default option is provided that is compatible with
  37. | the Mailgun mail service which will provide reliable deliveries.
  38. |
  39. */
  40. 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
  41. /*
  42. |--------------------------------------------------------------------------
  43. | SMTP Host Port
  44. |--------------------------------------------------------------------------
  45. |
  46. | This is the SMTP port used by this mailer when delivering e-mails to
  47. | users of the application. Like the host we have set this value to
  48. | stay compatible with the Mailgun e-mail application by default.
  49. |
  50. */
  51. 'port' => env('MAIL_PORT', 587),
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Global "From" Address
  55. |--------------------------------------------------------------------------
  56. |
  57. | You may wish for all e-mails sent by your application to be sent from
  58. | the same address. Here, you may specify a name and address that is
  59. | used globally for all e-mails that are sent through this mailer.
  60. |
  61. */
  62. 'from' => [
  63. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  64. 'name' => env('MAIL_FROM_NAME', 'Example'),
  65. ],
  66. /*
  67. |--------------------------------------------------------------------------
  68. | E-Mail Encryption Protocol
  69. |--------------------------------------------------------------------------
  70. |
  71. | Here you may specify the encryption protocol that should be used when
  72. | the mailer sends any e-mail messages. A sensible default using the
  73. | transport layer security protocol should provide great security.
  74. |
  75. */
  76. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  77. /*
  78. |--------------------------------------------------------------------------
  79. | SMTP Server Username
  80. |--------------------------------------------------------------------------
  81. |
  82. | If your SMTP server requires a username for authentication, you should
  83. | set it here. This will get used to authenticate with your server on
  84. | connection. You may also set the "password" value below this one.
  85. |
  86. */
  87. 'username' => env('MAIL_USERNAME'),
  88. 'password' => env('MAIL_PASSWORD'),
  89. ],
  90. ],
  91. /*
  92. |--------------------------------------------------------------------------
  93. | Sendmail System Path
  94. |--------------------------------------------------------------------------
  95. |
  96. | When using the "sendmail" driver to send e-mails, we will need to know
  97. | the path to where Sendmail lives on this server. A default path has
  98. | been provided here, which will work well on most of your systems.
  99. |
  100. */
  101. 'sendmail' => '/usr/sbin/sendmail -bs',
  102. /*
  103. |--------------------------------------------------------------------------
  104. | Markdown Mail Settings
  105. |--------------------------------------------------------------------------
  106. |
  107. | If you are using Markdown based email rendering, you may configure your
  108. | theme and component paths here, allowing you to customize the design
  109. | of the emails. Or, you may simply stick with the Laravel defaults!
  110. |
  111. */
  112. 'markdown' => [
  113. 'theme' => 'default',
  114. 'paths' => [
  115. resource_path('views/vendor/mail'),
  116. ],
  117. ],
  118. /*
  119. |--------------------------------------------------------------------------
  120. | Log Channel
  121. |--------------------------------------------------------------------------
  122. |
  123. | If you are using the "log" driver, you may specify the logging channel
  124. | if you prefer to keep mail messages separate from other log entries
  125. | for simpler reading. Otherwise, the default channel will be used.
  126. |
  127. */
  128. 'log_channel' => env('MAIL_LOG_CHANNEL'),
  129. ];