LaravelTest

Форк
0
/
mail.php 
111 строк · 3.3 Кб
1
<?php
2

3
return [
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", "log", "array", "failover", "roundrobin"
34
    |
35
    */
36

37
    'mailers' => [
38

39
        'smtp' => [
40
            'transport' => 'smtp',
41
            'url' => env('MAIL_URL'),
42
            'host' => env('MAIL_HOST', '127.0.0.1'),
43
            'port' => env('MAIL_PORT', 2525),
44
            'encryption' => env('MAIL_ENCRYPTION', 'tls'),
45
            'username' => env('MAIL_USERNAME'),
46
            'password' => env('MAIL_PASSWORD'),
47
            'timeout' => null,
48
            'local_domain' => env('MAIL_EHLO_DOMAIN'),
49
        ],
50

51
        'ses' => [
52
            'transport' => 'ses',
53
        ],
54

55
        'postmark' => [
56
            'transport' => 'postmark',
57
            // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
58
            // 'client' => [
59
            //     'timeout' => 5,
60
            // ],
61
        ],
62

63
        'sendmail' => [
64
            'transport' => 'sendmail',
65
            'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
66
        ],
67

68
        'log' => [
69
            'transport' => 'log',
70
            'channel' => env('MAIL_LOG_CHANNEL'),
71
        ],
72

73
        'array' => [
74
            'transport' => 'array',
75
        ],
76

77
        'failover' => [
78
            'transport' => 'failover',
79
            'mailers' => [
80
                'smtp',
81
                'log',
82
            ],
83
        ],
84

85
        'roundrobin' => [
86
            'transport' => 'roundrobin',
87
            'mailers' => [
88
                'ses',
89
                'postmark',
90
            ],
91
        ],
92

93
    ],
94

95
    /*
96
    |--------------------------------------------------------------------------
97
    | Global "From" Address
98
    |--------------------------------------------------------------------------
99
    |
100
    | You may wish for all emails sent by your application to be sent from
101
    | the same address. Here you may specify a name and address that is
102
    | used globally for all emails that are sent by your application.
103
    |
104
    */
105

106
    'from' => [
107
        'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
108
        'name' => env('MAIL_FROM_NAME', 'Example'),
109
    ],
110

111
];
112

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.