Cachet/config/mail.php

144 lines
4.2 KiB
PHP
Raw Normal View History

2015-03-20 18:30:45 -06:00
<?php
2024-01-19 20:03:40 +00:00
/*
* This file is part of Cachet.
*
* (c) Alt Three Services Limited
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
2015-03-20 18:30:45 -06:00
return [
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
2024-01-19 20:03:17 +00:00
| Default Mailer
2015-03-20 18:32:24 -06:00
|--------------------------------------------------------------------------
|
2024-01-19 20:03:17 +00:00
| 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.
2015-03-20 18:32:24 -06:00
|
*/
2024-01-19 20:03:17 +00:00
'default' => env('MAIL_MAILER', 'smtp'),
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
2024-01-19 20:03:17 +00:00
| Mailer Configurations
2015-03-20 18:32:24 -06:00
|--------------------------------------------------------------------------
|
2024-01-19 20:03:17 +00:00
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
2015-03-20 18:32:24 -06:00
|
2024-01-19 20:03:17 +00:00
| Laravel supports a variety of mail "transport" drivers to be used while
| sending an e-mail. You will specify which one you are using for your
| mailers below. You are free to add additional mailers as required.
2015-03-20 18:32:24 -06:00
|
2024-01-19 20:03:17 +00:00
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
| "postmark", "log", "array", "failover", "roundrobin"
2015-03-20 18:32:24 -06:00
|
*/
2024-01-19 20:03:17 +00:00
'mailers' => [
'smtp' => [
2024-01-19 20:03:40 +00:00
'transport' => 'smtp',
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
2024-01-19 20:03:17 +00:00
'local_domain' => env('MAIL_EHLO_DOMAIN'),
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'ses' => [
'transport' => 'ses',
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => null,
// 'client' => [
// 'timeout' => 5,
// ],
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'mailgun' => [
'transport' => 'mailgun',
// 'client' => [
// 'timeout' => 5,
// ],
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'sendmail' => [
'transport' => 'sendmail',
2024-01-19 20:03:40 +00:00
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
2024-01-19 20:03:17 +00:00
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'log' => [
'transport' => 'log',
2024-01-19 20:03:40 +00:00
'channel' => env('MAIL_LOG_CHANNEL'),
2024-01-19 20:03:17 +00:00
],
'array' => [
'transport' => 'array',
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'failover' => [
'transport' => 'failover',
2024-01-19 20:03:40 +00:00
'mailers' => [
2024-01-19 20:03:17 +00:00
'smtp',
'log',
],
],
2015-03-20 18:32:24 -06:00
2024-01-19 20:03:17 +00:00
'roundrobin' => [
'transport' => 'roundrobin',
2024-01-19 20:03:40 +00:00
'mailers' => [
2024-01-19 20:03:17 +00:00
'ses',
'postmark',
],
],
],
2017-06-13 23:09:18 +01:00
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
2024-01-19 20:03:17 +00:00
| Global "From" Address
2015-03-20 18:32:24 -06:00
|--------------------------------------------------------------------------
|
2024-01-19 20:03:17 +00:00
| You may wish for all e-mails sent by your application to be sent from
| the same address. Here, you may specify a name and address that is
| used globally for all e-mails that are sent by your application.
2015-03-20 18:32:24 -06:00
|
*/
2024-01-19 20:03:17 +00:00
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
2024-01-19 20:03:40 +00:00
'name' => env('MAIL_FROM_NAME', 'Example'),
2024-01-19 20:03:17 +00:00
],
2015-03-20 18:32:24 -06:00
/*
|--------------------------------------------------------------------------
2017-06-13 23:09:18 +01:00
| Markdown Mail Settings
2015-03-20 18:32:24 -06:00
|--------------------------------------------------------------------------
|
2017-06-13 23:09:18 +01:00
| If you are using Markdown based email rendering, you may configure your
| theme and component paths here, allowing you to customize the design
| of the emails. Or, you may simply stick with the Laravel defaults!
2015-03-20 18:32:24 -06:00
|
*/
2017-06-13 23:09:18 +01:00
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
2015-03-20 18:32:24 -06:00
2015-03-20 18:30:45 -06:00
];