Advertisement
Guest User

Untitled

a guest
Jul 30th, 2017
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.30 KB | None | 0 0
  1. <?php
  2.  
  3. return [
  4.  
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Mail Driver
  8. |--------------------------------------------------------------------------
  9. |
  10. | Laravel supports both SMTP and PHP's "mail" function as drivers for the
  11. | sending of e-mail. You may specify which one you're using throughout
  12. | your application here. By default, Laravel is setup for SMTP mail.
  13. |
  14. | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "ses", "log"
  15. |
  16. */
  17.  
  18. 'driver' => env('MAIL_DRIVER', 'smtp'),
  19.  
  20. /*
  21. |--------------------------------------------------------------------------
  22. | SMTP Host Address
  23. |--------------------------------------------------------------------------
  24. |
  25. | Here you may provide the host address of the SMTP server used by your
  26. | applications. A default option is provided that is compatible with
  27. | the Mailgun mail service which will provide reliable deliveries.
  28. |
  29. */
  30.  
  31. 'host' => env('MAIL_HOST', 'smtp.gmail.com'),
  32.  
  33. /*
  34. |--------------------------------------------------------------------------
  35. | SMTP Host Port
  36. |--------------------------------------------------------------------------
  37. |
  38. | This is the SMTP port used by your application to deliver e-mails to
  39. | users of the application. Like the host we have set this value to
  40. | stay compatible with the Mailgun e-mail application by default.
  41. |
  42. */
  43.  
  44. 'port' => env('MAIL_PORT', 587),
  45.  
  46. /*
  47. |--------------------------------------------------------------------------
  48. | Global "From" Address
  49. |--------------------------------------------------------------------------
  50. |
  51. | You may wish for all e-mails sent by your application to be sent from
  52. | the same address. Here, you may specify a name and address that is
  53. | used globally for all e-mails that are sent by your application.
  54. |
  55. */
  56.  
  57. 'from' => ['address' => 'myemail@gmail.com', 'name' => 'Do not Reply'],
  58.  
  59. /*
  60. |--------------------------------------------------------------------------
  61. | E-Mail Encryption Protocol
  62. |--------------------------------------------------------------------------
  63. |
  64. | Here you may specify the encryption protocol that should be used when
  65. | the application send e-mail messages. A sensible default using the
  66. | transport layer security protocol should provide great security.
  67. |
  68. */
  69.  
  70. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  71.  
  72. /*
  73. |--------------------------------------------------------------------------
  74. | SMTP Server Username
  75. |--------------------------------------------------------------------------
  76. |
  77. | If your SMTP server requires a username for authentication, you should
  78. | set it here. This will get used to authenticate with your server on
  79. | connection. You may also set the "password" value below this one.
  80. |
  81. */
  82.  
  83. 'username' => env('MAIL_USERNAME'),
  84.  
  85. /*
  86. |--------------------------------------------------------------------------
  87. | SMTP Server Password
  88. |--------------------------------------------------------------------------
  89. |
  90. | Here you may set the password required by your SMTP server to send out
  91. | messages from your application. This will be given to the server on
  92. | connection so that the application will be able to send messages.
  93. |
  94. */
  95.  
  96. 'password' => env('MAIL_PASSWORD'),
  97.  
  98. /*
  99. |--------------------------------------------------------------------------
  100. | Sendmail System Path
  101. |--------------------------------------------------------------------------
  102. |
  103. | When using the "sendmail" driver to send e-mails, we will need to know
  104. | the path to where Sendmail lives on this server. A default path has
  105. | been provided here, which will work well on most of your systems.
  106. |
  107. */
  108.  
  109. 'sendmail' => '/usr/sbin/sendmail -bs',
  110.  
  111. /*
  112. |--------------------------------------------------------------------------
  113. | Mail "Pretend"
  114. |--------------------------------------------------------------------------
  115. |
  116. | When this option is enabled, e-mail will not actually be sent over the
  117. | web and will instead be written to your application's logs files so
  118. | you may inspect the message. This is great for local development.
  119. |
  120. */
  121.  
  122. 'pretend' => false,
  123.  
  124. ];
  125. `
  126.  
  127. MAIL_DRIVER=smtp
  128. MAIL_HOST=smtp.gmail.com
  129. MAIL_PORT=587
  130. MAIL_USERNAME=myemail@gmail.com
  131. MAIL_PASSWORD=password
  132. MAIL_ENCRYPTION=null
  133.  
  134. MAIL_DRIVER=smtp
  135. MAIL_HOST=smtp.gmail.com
  136. MAIL_PORT=587
  137. MAIL_USERNAME=myemail@gmail.com
  138. MAIL_PASSWORD=apppassword
  139. MAIL_ENCRYPTION=tls
  140.  
  141. MAIL_DRIVER=sendmail
  142. MAIL_HOST=smtp.gmail.com
  143. MAIL_PORT=587
  144. MAIL_USERNAME=your@gmail.com
  145. MAIL_PASSWORD=apppassword
  146. MAIL_ENCRYPTION=tls
  147.  
  148. 'driver' => env('MAIL_DRIVER', 'smtp'),
  149. 'host' =>env('MAIL_HOST', 'smtp.gmail.com'),
  150. 'port' =>env('MAIL_PORT', 587),
  151. 'from' => ['address' =>'youremail@mail.com', 'name' => 'Email_Subject'],
  152. 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
  153. 'username' =>env('MAIL_USERNAME','yourusername@mail.com'),
  154. 'password' =>env('MAIL_PASSWORD','youremailpassword'),
  155. 'sendmail' =>'/usr/sbin/sendmail -bs',
  156.  
  157. MAIL_DRIVER=smtp
  158. MAIL_HOST=smtp.gmail.com
  159. MAIL_PORT=587
  160. MAIL_USERNAME=youremailusername<br>
  161. MAIL_PASSWORD=youremailpassword
  162. MAIL_ENCRYPTION=tls
  163.  
  164. php artisan config:cache
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement