Simple problems require simple solutions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.5 KiB

  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", "resend", "log", "array",
  30. | "failover", "roundrobin"
  31. |
  32. */
  33. 'mailers' => [
  34. 'smtp' => [
  35. 'transport' => 'smtp',
  36. 'url' => env('MAIL_URL'),
  37. 'host' => env('MAIL_HOST', '127.0.0.1'),
  38. 'port' => env('MAIL_PORT', 2525),
  39. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  40. 'username' => env('MAIL_USERNAME'),
  41. 'password' => env('MAIL_PASSWORD'),
  42. 'timeout' => null,
  43. 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
  44. ],
  45. 'ses' => [
  46. 'transport' => 'ses',
  47. ],
  48. 'postmark' => [
  49. 'transport' => 'postmark',
  50. // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
  51. // 'client' => [
  52. // 'timeout' => 5,
  53. // ],
  54. ],
  55. 'resend' => [
  56. 'transport' => 'resend',
  57. ],
  58. 'sendmail' => [
  59. 'transport' => 'sendmail',
  60. 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
  61. ],
  62. 'log' => [
  63. 'transport' => 'log',
  64. 'channel' => env('MAIL_LOG_CHANNEL'),
  65. ],
  66. 'array' => [
  67. 'transport' => 'array',
  68. ],
  69. 'failover' => [
  70. 'transport' => 'failover',
  71. 'mailers' => [
  72. 'smtp',
  73. 'log',
  74. ],
  75. ],
  76. 'roundrobin' => [
  77. 'transport' => 'roundrobin',
  78. 'mailers' => [
  79. 'ses',
  80. 'postmark',
  81. ],
  82. ],
  83. ],
  84. /*
  85. |--------------------------------------------------------------------------
  86. | Global "From" Address
  87. |--------------------------------------------------------------------------
  88. |
  89. | You may wish for all emails sent by your application to be sent from
  90. | the same address. Here you may specify a name and address that is
  91. | used globally for all emails that are sent by your application.
  92. |
  93. */
  94. 'from' => [
  95. 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
  96. 'name' => env('MAIL_FROM_NAME', 'Example'),
  97. ],
  98. ];