mail.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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_DRIVER', '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. 'url' => env('MAIL_URL'),
  35. 'host' => env('MAIL_HOST', '127.0.0.1'),
  36. 'port' => env('MAIL_PORT', 2525),
  37. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  38. 'username' => env('MAIL_USERNAME'),
  39. 'password' => env('MAIL_PASSWORD'),
  40. 'timeout' => null,
  41. 'local_domain' => env('MAIL_EHLO_DOMAIN'),
  42. 'verify_peer' => env('MAIL_SMTP_VERIFY_PEER', true),
  43. ],
  44. 'ses' => [
  45. 'transport' => 'ses',
  46. ],
  47. 'mailgun' => [
  48. 'transport' => 'mailgun',
  49. 'client' => [
  50. 'timeout' => 5,
  51. ],
  52. ],
  53. 'postmark' => [
  54. 'transport' => 'postmark',
  55. 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
  56. 'client' => [
  57. 'timeout' => 5,
  58. ],
  59. ],
  60. 'resend' => [
  61. 'transport' => 'resend',
  62. ],
  63. 'sendmail' => [
  64. 'transport' => 'sendmail',
  65. 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
  66. ],
  67. 'log' => [
  68. 'transport' => 'log',
  69. 'channel' => env('MAIL_LOG_CHANNEL'),
  70. ],
  71. 'array' => [
  72. 'transport' => 'array',
  73. ],
  74. 'failover' => [
  75. 'transport' => 'failover',
  76. 'mailers' => [
  77. 'log',
  78. ],
  79. ],
  80. ],
  81. /*
  82. |--------------------------------------------------------------------------
  83. | Global "From" Address
  84. |--------------------------------------------------------------------------
  85. |
  86. | You may wish for all e-mails sent by your application to be sent from
  87. | the same address. Here, you may specify a name and address that is
  88. | used globally for all e-mails that are sent by your application.
  89. |
  90. */
  91. 'from' => [
  92. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  93. 'name' => env('MAIL_FROM_NAME', 'Example'),
  94. ],
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Markdown Mail Settings
  98. |--------------------------------------------------------------------------
  99. |
  100. | If you are using Markdown based email rendering, you may configure your
  101. | theme and component paths here, allowing you to customize the design
  102. | of the emails. Or, you may simply stick with the Laravel defaults!
  103. |
  104. */
  105. 'markdown' => [
  106. 'theme' => 'default',
  107. 'paths' => [
  108. resource_path('views/vendor/mail'),
  109. ],
  110. ],
  111. ];