mail.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Mailer
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default mailer that is used to send all email
  9. | messages unless another mailer is explicitly specified when sending
  10. | the message. All additional mailers can be configured within the
  11. | "mailers" array. Examples of each type of mailer are provided.
  12. |
  13. */
  14. 'default' => env('MAIL_MAILER', 'log'),
  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 that can be used
  25. | when delivering an email. You may specify which one you're using for
  26. | your mailers below. You may also add additional mailers if needed.
  27. |
  28. | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
  29. | "postmark", "log", "array", "failover", "roundrobin"
  30. |
  31. */
  32. 'mailers' => [
  33. 'smtp' => [
  34. 'transport' => 'smtp',
  35. 'url' => env('MAIL_URL'),
  36. 'host' => env('MAIL_HOST', '127.0.0.1'),
  37. 'port' => env('MAIL_PORT', 2525),
  38. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  39. 'username' => env('MAIL_USERNAME'),
  40. 'password' => env('MAIL_PASSWORD'),
  41. 'timeout' => null,
  42. 'local_domain' => env('MAIL_EHLO_DOMAIN'),
  43. ],
  44. 'ses' => [
  45. 'transport' => 'ses',
  46. ],
  47. 'postmark' => [
  48. 'transport' => 'postmark',
  49. // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
  50. // 'client' => [
  51. // 'timeout' => 5,
  52. // ],
  53. ],
  54. 'sendmail' => [
  55. 'transport' => 'sendmail',
  56. 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
  57. ],
  58. 'log' => [
  59. 'transport' => 'log',
  60. 'channel' => env('MAIL_LOG_CHANNEL'),
  61. ],
  62. 'array' => [
  63. 'transport' => 'array',
  64. ],
  65. 'failover' => [
  66. 'transport' => 'failover',
  67. 'mailers' => [
  68. 'smtp',
  69. 'log',
  70. ],
  71. ],
  72. 'roundrobin' => [
  73. 'transport' => 'roundrobin',
  74. 'mailers' => [
  75. 'ses',
  76. 'postmark',
  77. ],
  78. ],
  79. ],
  80. /*
  81. |--------------------------------------------------------------------------
  82. | Global "From" Address
  83. |--------------------------------------------------------------------------
  84. |
  85. | You may wish for all emails sent by your application to be sent from
  86. | the same address. Here you may specify a name and address that is
  87. | used globally for all emails that are sent by your application.
  88. |
  89. */
  90. 'from' => [
  91. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  92. 'name' => env('MAIL_FROM_NAME', 'Example'),
  93. ],
  94. ];