sposchedule
116 строк · 3.5 Кб
1<?php
2
3return [
4
5/*
6|--------------------------------------------------------------------------
7| Default Mailer
8|--------------------------------------------------------------------------
9|
10| This option controls the default mailer that is used to send all email
11| messages unless another mailer is explicitly specified when sending
12| the message. All additional mailers can be configured within the
13| "mailers" array. Examples of each type of mailer are provided.
14|
15*/
16
17'default' => env('MAIL_MAILER', 'log'),
18
19/*
20|--------------------------------------------------------------------------
21| Mailer Configurations
22|--------------------------------------------------------------------------
23|
24| Here you may configure all of the mailers used by your application plus
25| their respective settings. Several examples have been configured for
26| you and you are free to add your own as your application requires.
27|
28| Laravel supports a variety of mail "transport" drivers that can be used
29| when delivering an email. You may specify which one you're using for
30| your mailers below. You may also add additional mailers if needed.
31|
32| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
33| "postmark", "resend", "log", "array",
34| "failover", "roundrobin"
35|
36*/
37
38'mailers' => [
39
40'smtp' => [
41'transport' => 'smtp',
42'url' => env('MAIL_URL'),
43'host' => env('MAIL_HOST', '127.0.0.1'),
44'port' => env('MAIL_PORT', 2525),
45'encryption' => env('MAIL_ENCRYPTION', 'tls'),
46'username' => env('MAIL_USERNAME'),
47'password' => env('MAIL_PASSWORD'),
48'timeout' => null,
49'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
50],
51
52'ses' => [
53'transport' => 'ses',
54],
55
56'postmark' => [
57'transport' => 'postmark',
58// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
59// 'client' => [
60// 'timeout' => 5,
61// ],
62],
63
64'resend' => [
65'transport' => 'resend',
66],
67
68'sendmail' => [
69'transport' => 'sendmail',
70'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
71],
72
73'log' => [
74'transport' => 'log',
75'channel' => env('MAIL_LOG_CHANNEL'),
76],
77
78'array' => [
79'transport' => 'array',
80],
81
82'failover' => [
83'transport' => 'failover',
84'mailers' => [
85'smtp',
86'log',
87],
88],
89
90'roundrobin' => [
91'transport' => 'roundrobin',
92'mailers' => [
93'ses',
94'postmark',
95],
96],
97
98],
99
100/*
101|--------------------------------------------------------------------------
102| Global "From" Address
103|--------------------------------------------------------------------------
104|
105| You may wish for all emails sent by your application to be sent from
106| the same address. Here you may specify a name and address that is
107| used globally for all emails that are sent by your application.
108|
109*/
110
111'from' => [
112'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
113'name' => env('MAIL_FROM_NAME', 'Example'),
114],
115
116];
117