mirror of
https://gh.wpcy.net/https://github.com/aspirepress/AspireCloud.git
synced 2026-05-31 00:04:27 +08:00
75 lines
1.8 KiB
PHP
75 lines
1.8 KiB
PHP
<?php
|
|
|
|
return [
|
|
'default' => env('MAIL_MAILER', 'log'),
|
|
|
|
'mailers' => [
|
|
'mailgun' => [
|
|
'transport' => 'mailgun',
|
|
'client' => ['timeout' => 5],
|
|
],
|
|
|
|
'smtp' => [
|
|
'transport' => 'smtp',
|
|
'url' => env('MAIL_URL'),
|
|
'host' => env('MAIL_HOST', '127.0.0.1'),
|
|
'port' => env('MAIL_PORT', 2525),
|
|
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
|
|
'username' => env('MAIL_USERNAME'),
|
|
'password' => env('MAIL_PASSWORD'),
|
|
'timeout' => null,
|
|
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
|
|
],
|
|
|
|
'ses' => [
|
|
'transport' => 'ses',
|
|
],
|
|
|
|
'postmark' => [
|
|
'transport' => 'postmark',
|
|
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
|
|
// 'client' => [
|
|
// 'timeout' => 5,
|
|
// ],
|
|
],
|
|
|
|
'resend' => [
|
|
'transport' => 'resend',
|
|
],
|
|
|
|
'sendmail' => [
|
|
'transport' => 'sendmail',
|
|
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
|
|
],
|
|
|
|
'log' => [
|
|
'transport' => 'log',
|
|
'channel' => env('MAIL_LOG_CHANNEL'),
|
|
],
|
|
|
|
'array' => [
|
|
'transport' => 'array',
|
|
],
|
|
|
|
'failover' => [
|
|
'transport' => 'failover',
|
|
'mailers' => [
|
|
'smtp',
|
|
'log',
|
|
],
|
|
],
|
|
|
|
'roundrobin' => [
|
|
'transport' => 'roundrobin',
|
|
'mailers' => [
|
|
'ses',
|
|
'postmark',
|
|
],
|
|
],
|
|
],
|
|
|
|
'from' => [
|
|
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
|
|
'name' => env('MAIL_FROM_NAME', 'Example'),
|
|
],
|
|
];
|