mail.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Mail Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | Laravel supports both SMTP and PHP's "mail" function as drivers for the
  9. | sending of e-mail. You may specify which one you're using throughout
  10. | your application here. By default, Laravel is setup for SMTP mail.
  11. |
  12. | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill",
  13. | "ses", "sparkpost", "log"
  14. |
  15. */
  16. 'driver' => env('MAIL_DRIVER', 'smtp'),
  17. /*
  18. |--------------------------------------------------------------------------
  19. | SMTP Host Address
  20. |--------------------------------------------------------------------------
  21. |
  22. | Here you may provide the host address of the SMTP server used by your
  23. | applications. A default option is provided that is compatible with
  24. | the Mailgun mail service which will provide reliable deliveries.
  25. |
  26. */
  27. 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
  28. /*
  29. |--------------------------------------------------------------------------
  30. | SMTP Host Port
  31. |--------------------------------------------------------------------------
  32. |
  33. | This is the SMTP port used by your application to deliver e-mails to
  34. | users of the application. Like the host we have set this value to
  35. | stay compatible with the Mailgun e-mail application by default.
  36. |
  37. */
  38. 'port' => env('MAIL_PORT', 587),
  39. /*
  40. |--------------------------------------------------------------------------
  41. | Global "From" Address
  42. |--------------------------------------------------------------------------
  43. |
  44. | You may wish for all e-mails sent by your application to be sent from
  45. | the same address. Here, you may specify a name and address that is
  46. | used globally for all e-mails that are sent by your application.
  47. |
  48. */
  49. 'from' => [
  50. 'address' => env('MAIL_SENDER_ADDRESS', 'hello@example.com'),
  51. 'name' => env('MAIL_SENDER_NAME', 'Example'),
  52. ],
  53. /*
  54. |--------------------------------------------------------------------------
  55. | E-Mail Encryption Protocol
  56. |--------------------------------------------------------------------------
  57. |
  58. | Here you may specify the encryption protocol that should be used when
  59. | the application send e-mail messages. A sensible default using the
  60. | transport layer security protocol should provide great security.
  61. |
  62. */
  63. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  64. /*
  65. |--------------------------------------------------------------------------
  66. | SMTP Server Username
  67. |--------------------------------------------------------------------------
  68. |
  69. | If your SMTP server requires a username for authentication, you should
  70. | set it here. This will get used to authenticate with your server on
  71. | connection. You may also set the "password" value below this one.
  72. |
  73. */
  74. 'username' => env('MAIL_USERNAME'),
  75. /*
  76. |--------------------------------------------------------------------------
  77. | SMTP Server Password
  78. |--------------------------------------------------------------------------
  79. |
  80. | Here you may set the password required by your SMTP server to send out
  81. | messages from your application. This will be given to the server on
  82. | connection so that the application will be able to send messages.
  83. |
  84. */
  85. 'password' => env('MAIL_PASSWORD'),
  86. /*
  87. |--------------------------------------------------------------------------
  88. | Sendmail System Path
  89. |--------------------------------------------------------------------------
  90. |
  91. | When using the "sendmail" driver to send e-mails, we will need to know
  92. | the path to where Sendmail lives on this server. A default path has
  93. | been provided here, which will work well on most of your systems.
  94. |
  95. */
  96. 'sendmail' => '/usr/sbin/sendmail -bs',
  97. ];