mail.php 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 this
  25. | mailer here. The mailer is configured to send via SMTP by default.
  26. |
  27. | Supported: "smtp", "sendmail", "mailgun", "ses",
  28. | "postmark", "log", "array"
  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. ],
  40. 'sendmail' => [
  41. 'transport' => 'sendmail',
  42. 'path' => '/usr/sbin/sendmail -bs',
  43. ],
  44. 'log' => [
  45. 'transport' => 'log',
  46. 'channel' => env('MAIL_LOG_CHANNEL'),
  47. ],
  48. ],
  49. /*
  50. |--------------------------------------------------------------------------
  51. | Global "From" Address
  52. |--------------------------------------------------------------------------
  53. |
  54. | You may wish for all e-mails sent by your application to be sent from
  55. | the same address. Here, you may specify a name and address that is
  56. | used globally for all e-mails that are sent by your application.
  57. |
  58. */
  59. 'from' => [
  60. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  61. 'name' => env('MAIL_FROM_NAME', 'Example'),
  62. ],
  63. /*
  64. |--------------------------------------------------------------------------
  65. | Markdown Mail Settings
  66. |--------------------------------------------------------------------------
  67. |
  68. | If you are using Markdown based email rendering, you may configure your
  69. | theme and component paths here, allowing you to customize the design
  70. | of the emails. Or, you may simply stick with the Laravel defaults!
  71. |
  72. */
  73. 'markdown' => [
  74. 'theme' => 'default',
  75. 'paths' => [
  76. resource_path('views/vendor/mail'),
  77. ],
  78. ],
  79. ];