| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  | /** | 
					
						
							|  |  |  |  * Mail configuration options. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * Changes to these config files are not supported by BookStack and may break upon updates. | 
					
						
							|  |  |  |  * Configuration should be altered via the `.env` file or environment variables. | 
					
						
							|  |  |  |  * Do not edit this file unless you're happy to maintain any changes yourself. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  | return [ | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Mail driver to use.
 | 
					
						
							|  |  |  |     // Options: smtp, mail, sendmail, log
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'driver' => env('MAIL_DRIVER', 'smtp'), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // SMTP host address
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // SMTP host port
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'port' => env('MAIL_PORT', 587), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Global "From" address & name
 | 
					
						
							|  |  |  |     'from' => [ | 
					
						
							|  |  |  |         'address' => env('MAIL_FROM', 'mail@bookstackapp.com'), | 
					
						
							|  |  |  |         'name' => env('MAIL_FROM_NAME','BookStack') | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Email encryption protocol
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'encryption' => env('MAIL_ENCRYPTION', 'tls'), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // SMTP server username
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'username' => env('MAIL_USERNAME'), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // SMTP server password
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'password' => env('MAIL_PASSWORD'), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Sendmail application path
 | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  |     'sendmail' => '/usr/sbin/sendmail -bs', | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-12-24 00:26:39 +08:00
										 |  |  |     // Email markdown configuration
 | 
					
						
							| 
									
										
										
										
											2018-12-17 04:44:57 +08:00
										 |  |  |     'markdown' => [ | 
					
						
							|  |  |  |         'theme' => 'default', | 
					
						
							|  |  |  |         'paths' => [ | 
					
						
							|  |  |  |             resource_path('views/vendor/mail'), | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2015-07-13 03:01:42 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | ]; |