1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-23 03:12:32 +01:00
BookStack/app/Config/mail.php

58 lines
1.6 KiB
PHP
Raw Normal View History

2015-07-12 21:01:42 +02:00
<?php
/**
* 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-12 21:01:42 +02:00
return [
2015-07-12 21:01:42 +02:00
// Mail driver to use.
// From Laravel 7+ this is MAIL_MAILER in laravel.
// Kept as MAIL_DRIVER in BookStack to prevent breaking change.
// Options: smtp, sendmail, log, array
2015-07-12 21:01:42 +02:00
'driver' => env('MAIL_DRIVER', 'smtp'),
// SMTP host address
2015-07-12 21:01:42 +02:00
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
// SMTP host port
2015-07-12 21:01:42 +02:00
'port' => env('MAIL_PORT', 587),
// Global "From" address & name
'from' => [
'address' => env('MAIL_FROM', 'mail@bookstackapp.com'),
2021-06-26 17:23:15 +02:00
'name' => env('MAIL_FROM_NAME', 'BookStack'),
],
2015-07-12 21:01:42 +02:00
// Email encryption protocol
2015-07-12 21:01:42 +02:00
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
// SMTP server username
2015-07-12 21:01:42 +02:00
'username' => env('MAIL_USERNAME'),
// SMTP server password
2015-07-12 21:01:42 +02:00
'password' => env('MAIL_PASSWORD'),
// Sendmail application path
2015-07-12 21:01:42 +02:00
'sendmail' => '/usr/sbin/sendmail -bs',
// Email markdown configuration
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
2015-07-12 21:01:42 +02:00
2019-09-07 00:36:16 +02:00
// Log Channel
// If you are using the "log" driver, you may specify the logging channel
// if you prefer to keep mail messages separate from other log entries
// for simpler reading. Otherwise, the default channel will be used.
'log_channel' => env('MAIL_LOG_CHANNEL'),
2015-07-12 21:01:42 +02:00
];