mail.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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' => ['address' => null, 'name' => null],
  50. /*
  51. |--------------------------------------------------------------------------
  52. | E-Mail Encryption Protocol
  53. |--------------------------------------------------------------------------
  54. |
  55. | Here you may specify the encryption protocol that should be used when
  56. | the application send e-mail messages. A sensible default using the
  57. | transport layer security protocol should provide great security.
  58. |
  59. */
  60. 'encryption' => env('MAIL_ENCRYPTION', 'ssl'),
  61. /*
  62. |--------------------------------------------------------------------------
  63. | SMTP Server Username
  64. |--------------------------------------------------------------------------
  65. |
  66. | If your SMTP server requires a username for authentication, you should
  67. | set it here. This will get used to authenticate with your server on
  68. | connection. You may also set the "password" value below this one.
  69. |
  70. */
  71. 'username' => env('MAIL_USERNAME'),
  72. /*
  73. |--------------------------------------------------------------------------
  74. | SMTP Server Password
  75. |--------------------------------------------------------------------------
  76. |
  77. | Here you may set the password required by your SMTP server to send out
  78. | messages from your application. This will be given to the server on
  79. | connection so that the application will be able to send messages.
  80. |
  81. */
  82. 'password' => env('MAIL_PASSWORD'),
  83. /*
  84. |--------------------------------------------------------------------------
  85. | Sendmail System Path
  86. |--------------------------------------------------------------------------
  87. |
  88. | When using the "sendmail" driver to send e-mails, we will need to know
  89. | the path to where Sendmail lives on this server. A default path has
  90. | been provided here, which will work well on most of your systems.
  91. |
  92. */
  93. 'sendmail' => '/usr/sbin/sendmail -bs',
  94. ];