2015-02-05 21:39:52 -06:00
|
|
|
<?php
|
2017-10-21 01:40:00 -05:00
|
|
|
/**
|
|
|
|
* mail.php
|
2020-03-17 11:06:30 -05:00
|
|
|
* Copyright (c) 2019 james@firefly-iii.org.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This file is part of Firefly III (https://github.com/firefly-iii).
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as
|
|
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
2017-10-21 01:40:00 -05:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2019-10-01 23:38:00 -05:00
|
|
|
* GNU Affero General Public License for more details.
|
2017-10-21 01:40:00 -05:00
|
|
|
*
|
2019-10-01 23:38:00 -05:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2017-10-21 01:40:00 -05:00
|
|
|
*/
|
|
|
|
|
2017-09-14 10:40:02 -05:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2015-02-05 21:39:52 -06:00
|
|
|
return [
|
2020-06-06 15:25:52 -05:00
|
|
|
|
2022-03-29 08:01:12 -05:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Default Mailer
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
| This option controls the default mailer that is used to send any email
|
|
|
|
| messages sent by your application. Alternative mailers may be setup
|
|
|
|
| and used as needed; however, this mailer will be used by default.
|
|
|
|
|
|
|
|
|
*/
|
2023-03-05 22:52:41 -06:00
|
|
|
'default' => envNonEmpty('MAIL_MAILER', 'log'),
|
2020-06-06 15:25:52 -05:00
|
|
|
|
|
|
|
'mailers' => [
|
|
|
|
'smtp' => [
|
2022-12-29 12:43:43 -06:00
|
|
|
'transport' => 'smtp',
|
2023-04-02 12:43:24 -05:00
|
|
|
'host' => envNonEmpty('MAIL_HOST', 'smtp.mailtrap.io'),
|
2022-12-29 12:43:43 -06:00
|
|
|
'port' => (int)env('MAIL_PORT', 2525),
|
2023-04-02 12:43:24 -05:00
|
|
|
'encryption' => envNonEmpty('MAIL_ENCRYPTION', 'tls'),
|
2023-04-07 11:21:12 -05:00
|
|
|
'username' => envNonEmpty('MAIL_USERNAME', 'user@example.com'),
|
|
|
|
'password' => envNonEmpty('MAIL_PASSWORD', 'password'),
|
2022-12-29 12:43:43 -06:00
|
|
|
'timeout' => null,
|
|
|
|
'verify_peer' => null !== env('MAIL_ENCRYPTION'),
|
2020-06-06 15:25:52 -05:00
|
|
|
],
|
|
|
|
|
|
|
|
'ses' => [
|
|
|
|
'transport' => 'ses',
|
|
|
|
],
|
|
|
|
|
|
|
|
'mailgun' => [
|
|
|
|
'transport' => 'mailgun',
|
|
|
|
],
|
2023-03-05 22:52:41 -06:00
|
|
|
|
2023-03-04 00:35:30 -06:00
|
|
|
'mandrill' => [
|
|
|
|
'transport' => 'mandrill',
|
|
|
|
],
|
2020-06-06 15:25:52 -05:00
|
|
|
|
|
|
|
'postmark' => [
|
|
|
|
'transport' => 'postmark',
|
|
|
|
],
|
|
|
|
|
|
|
|
'sendmail' => [
|
|
|
|
'transport' => 'sendmail',
|
2023-06-21 05:34:58 -05:00
|
|
|
'path' => envNonEmpty('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
|
2020-06-06 15:25:52 -05:00
|
|
|
],
|
2022-03-29 08:01:12 -05:00
|
|
|
'log' => [
|
2020-06-06 15:25:52 -05:00
|
|
|
'transport' => 'log',
|
2020-06-14 12:17:45 -05:00
|
|
|
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
|
2020-11-08 07:13:21 -06:00
|
|
|
'level' => 'notice',
|
2020-06-06 15:25:52 -05:00
|
|
|
],
|
2023-05-29 06:56:55 -05:00
|
|
|
'null' => [
|
2023-04-02 12:43:24 -05:00
|
|
|
'transport' => 'log',
|
|
|
|
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
|
|
|
|
'level' => 'notice',
|
|
|
|
],
|
2020-06-06 15:25:52 -05:00
|
|
|
|
|
|
|
'array' => [
|
|
|
|
'transport' => 'array',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
2022-03-29 08:01:12 -05:00
|
|
|
'from' => ['address' => envNonEmpty('MAIL_FROM', 'changeme@example.com'), 'name' => 'Firefly III Mailer'],
|
2017-09-09 15:32:11 -05:00
|
|
|
'markdown' => [
|
|
|
|
'theme' => 'default',
|
|
|
|
|
|
|
|
'paths' => [
|
|
|
|
resource_path('views/vendor/mail'),
|
|
|
|
],
|
|
|
|
],
|
2015-02-27 09:08:46 -06:00
|
|
|
|
2015-02-05 21:39:52 -06:00
|
|
|
];
|