Advertisement
Guest User

Untitled

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