Files
firefly-iii/config/mail.php

102 lines
3.4 KiB
PHP
Raw Permalink Normal View History

2015-02-06 04:39:52 +01:00
<?php
2017-10-21 08:40:00 +02:00
/**
* mail.php
2020-03-17 16:06:30 +00:00
* Copyright (c) 2019 james@firefly-iii.org.
2017-10-21 08:40:00 +02:00
*
* This file is part of Firefly III (https://github.com/firefly-iii).
2017-10-21 08:40:00 +02: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 08:40:00 +02:00
*
* This program is distributed in the hope that it will be useful,
2017-10-21 08:40:00 +02:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
2017-10-21 08:40:00 +02: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 08:40:00 +02:00
*/
2017-09-14 17:40:02 +02:00
declare(strict_types=1);
2015-02-06 04:39:52 +01:00
return [
2022-03-29 15:01:12 +02: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.
|
*/
'default' => envNonEmpty('MAIL_MAILER', 'log'),
2020-06-06 22:25:52 +02:00
'mailers' => [
'smtp' => [
2025-04-07 20:42:52 +02:00
'transport' => 'smtp',
'host' => envNonEmpty('MAIL_HOST', 'smtp.mailtrap.io'),
'port' => (int) env('MAIL_PORT', 2525),
'encryption' => envNonEmpty('MAIL_ENCRYPTION', 'tls'),
'username' => envNonEmpty('MAIL_USERNAME', 'user@example.com'),
'password' => envNonEmpty('MAIL_PASSWORD', 'password'),
'timeout' => null,
'scheme' => env('MAIL_SCHEME'),
'url' => env('MAIL_URL'),
2025-05-04 13:50:20 +02:00
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
2025-04-07 20:42:52 +02:00
'verify_peer' => env('MAIL_VERIFY_PEER', true),
'allow_self_signed' => env('MAIL_ALLOW_SELF_SIGNED', false),
'verify_peer_name' => env('MAIL_VERIFY_PEER_NAME', true),
2020-06-06 22:25:52 +02:00
],
'mailersend' => [
'transport' => 'mailersend',
],
'ses' => [
2020-06-06 22:25:52 +02:00
'transport' => 'ses',
],
'mailgun' => [
2020-06-06 22:25:52 +02:00
'transport' => 'mailgun',
],
'mandrill' => [
2023-03-04 07:35:30 +01:00
'transport' => 'mandrill',
],
2020-06-06 22:25:52 +02:00
'postmark' => [
2020-06-06 22:25:52 +02:00
'transport' => 'postmark',
],
'sendmail' => [
2020-06-06 22:25:52 +02:00
'transport' => 'sendmail',
2023-06-21 12:34:58 +02:00
'path' => envNonEmpty('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
2020-06-06 22:25:52 +02:00
],
'log' => [
2020-06-06 22:25:52 +02:00
'transport' => 'log',
2020-06-14 19:17:45 +02:00
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
2024-01-02 20:19:09 +01:00
'level' => 'info',
2020-06-06 22:25:52 +02:00
],
'null' => [
2023-04-02 19:43:24 +02:00
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
'level' => 'notice',
],
2020-06-06 22:25:52 +02:00
'array' => [
2020-06-06 22:25:52 +02:00
'transport' => 'array',
],
],
2022-03-29 15:01:12 +02:00
'from' => ['address' => envNonEmpty('MAIL_FROM', 'changeme@example.com'), 'name' => 'Firefly III Mailer'],
2017-09-09 22:32:11 +02:00
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
2015-02-06 04:39:52 +01:00
];