mail.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. 'exp'=>env('MAIL_EXP',600),
  15. /*
  16. |--------------------------------------------------------------------------
  17. | Mailer Configurations
  18. |--------------------------------------------------------------------------
  19. |
  20. | Here you may configure all of the mailers used by your application plus
  21. | their respective settings. Several examples have been configured for
  22. | you and you are free to add your own as your application requires.
  23. |
  24. | Laravel supports a variety of mail "transport" drivers to be used while
  25. | sending an e-mail. You will specify which one you are using for your
  26. | mailers below. You are free to add additional mailers as required.
  27. |
  28. | Supported: "smtp", "sendmail", "mailgun", "ses",
  29. | "postmark", "log", "array", "failover"
  30. |
  31. */
  32. 'mailers' => [
  33. 'smtp' => [
  34. 'transport' => 'smtp',
  35. 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
  36. 'port' => env('MAIL_PORT', 587),
  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. ],
  43. 'ses' => [
  44. 'transport' => 'ses',
  45. ],
  46. 'mailgun' => [
  47. 'transport' => 'mailgun',
  48. ],
  49. 'postmark' => [
  50. 'transport' => 'postmark',
  51. ],
  52. 'sendmail' => [
  53. 'transport' => 'sendmail',
  54. 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
  55. ],
  56. 'log' => [
  57. 'transport' => 'log',
  58. 'channel' => env('MAIL_LOG_CHANNEL'),
  59. ],
  60. 'array' => [
  61. 'transport' => 'array',
  62. ],
  63. 'failover' => [
  64. 'transport' => 'failover',
  65. 'mailers' => [
  66. 'smtp',
  67. 'log',
  68. ],
  69. ],
  70. ],
  71. /*
  72. |--------------------------------------------------------------------------
  73. | Global "From" Address
  74. |--------------------------------------------------------------------------
  75. |
  76. | You may wish for all e-mails sent by your application to be sent from
  77. | the same address. Here, you may specify a name and address that is
  78. | used globally for all e-mails that are sent by your application.
  79. |
  80. */
  81. 'from' => [
  82. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  83. 'name' => env('MAIL_FROM_NAME', 'Example'),
  84. ],
  85. /*
  86. |--------------------------------------------------------------------------
  87. | Markdown Mail Settings
  88. |--------------------------------------------------------------------------
  89. |
  90. | If you are using Markdown based email rendering, you may configure your
  91. | theme and component paths here, allowing you to customize the design
  92. | of the emails. Or, you may simply stick with the Laravel defaults!
  93. |
  94. */
  95. 'markdown' => [
  96. 'theme' => 'default',
  97. 'paths' => [
  98. resource_path('views/vendor/mail'),
  99. ],
  100. ],
  101. ];