mail.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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", "log"
  13. |
  14. */
  15. 'driver' => 'smtp',
  16. /*
  17. |--------------------------------------------------------------------------
  18. | SMTP Host Address
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may provide the host address of the SMTP server used by your
  22. | applications. A default option is provided that is compatible with
  23. | the Mailgun mail service which will provide reliable deliveries.
  24. |
  25. */
  26. 'host' => 'mailtrap.io',
  27. /*
  28. |--------------------------------------------------------------------------
  29. | SMTP Host Port
  30. |--------------------------------------------------------------------------
  31. |
  32. | This is the SMTP port used by your application to deliver e-mails to
  33. | users of the application. Like the host we have set this value to
  34. | stay compatible with the Mailgun e-mail application by default.
  35. |
  36. */
  37. 'port' => 465,
  38. /*
  39. |--------------------------------------------------------------------------
  40. | Global "From" Address
  41. |--------------------------------------------------------------------------
  42. |
  43. | You may wish for all e-mails sent by your application to be sent from
  44. | the same address. Here, you may specify a name and address that is
  45. | used globally for all e-mails that are sent by your application.
  46. |
  47. */
  48. 'from' => ['address' => 'homestead@laravel.com', 'name' => 'Homestead'],
  49. /*
  50. |--------------------------------------------------------------------------
  51. | E-Mail Encryption Protocol
  52. |--------------------------------------------------------------------------
  53. |
  54. | Here you may specify the encryption protocol that should be used when
  55. | the application send e-mail messages. A sensible default using the
  56. | transport layer security protocol should provide great security.
  57. |
  58. */
  59. 'encryption' => 'tls',
  60. /*
  61. |--------------------------------------------------------------------------
  62. | SMTP Server Username
  63. |--------------------------------------------------------------------------
  64. |
  65. | If your SMTP server requires a username for authentication, you should
  66. | set it here. This will get used to authenticate with your server on
  67. | connection. You may also set the "password" value below this one.
  68. |
  69. */
  70. 'username' => '',
  71. /*
  72. |--------------------------------------------------------------------------
  73. | SMTP Server Password
  74. |--------------------------------------------------------------------------
  75. |
  76. | Here you may set the password required by your SMTP server to send out
  77. | messages from your application. This will be given to the server on
  78. | connection so that the application will be able to send messages.
  79. |
  80. */
  81. 'password' => '',
  82. ];