|
1 <?php |
|
2 |
|
3 return [ |
|
4 |
|
5 /* |
|
6 |-------------------------------------------------------------------------- |
|
7 | Mail Driver |
|
8 |-------------------------------------------------------------------------- |
|
9 | |
|
10 | Laravel supports both SMTP and PHP's "mail" function as drivers for the |
|
11 | sending of e-mail. You may specify which one you're using throughout |
|
12 | your application here. By default, Laravel is setup for SMTP mail. |
|
13 | |
|
14 | Supported: "smtp", "mail", "sendmail", "mailgun", "mandrill", "log" |
|
15 | |
|
16 */ |
|
17 |
|
18 'driver' => env('MAIL_DRIVER', 'smtp'), |
|
19 |
|
20 /* |
|
21 |-------------------------------------------------------------------------- |
|
22 | SMTP Host Address |
|
23 |-------------------------------------------------------------------------- |
|
24 | |
|
25 | Here you may provide the host address of the SMTP server used by your |
|
26 | applications. A default option is provided that is compatible with |
|
27 | the Mailgun mail service which will provide reliable deliveries. |
|
28 | |
|
29 */ |
|
30 |
|
31 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), |
|
32 |
|
33 /* |
|
34 |-------------------------------------------------------------------------- |
|
35 | SMTP Host Port |
|
36 |-------------------------------------------------------------------------- |
|
37 | |
|
38 | This is the SMTP port used by your application to deliver e-mails to |
|
39 | users of the application. Like the host we have set this value to |
|
40 | stay compatible with the Mailgun e-mail application by default. |
|
41 | |
|
42 */ |
|
43 |
|
44 'port' => env('MAIL_PORT', 587), |
|
45 |
|
46 /* |
|
47 |-------------------------------------------------------------------------- |
|
48 | Global "From" Address |
|
49 |-------------------------------------------------------------------------- |
|
50 | |
|
51 | You may wish for all e-mails sent by your application to be sent from |
|
52 | the same address. Here, you may specify a name and address that is |
|
53 | used globally for all e-mails that are sent by your application. |
|
54 | |
|
55 */ |
|
56 |
|
57 'from' => ['address' => null, 'name' => null], |
|
58 |
|
59 /* |
|
60 |-------------------------------------------------------------------------- |
|
61 | E-Mail Encryption Protocol |
|
62 |-------------------------------------------------------------------------- |
|
63 | |
|
64 | Here you may specify the encryption protocol that should be used when |
|
65 | the application send e-mail messages. A sensible default using the |
|
66 | transport layer security protocol should provide great security. |
|
67 | |
|
68 */ |
|
69 |
|
70 'encryption' => 'tls', |
|
71 |
|
72 /* |
|
73 |-------------------------------------------------------------------------- |
|
74 | SMTP Server Username |
|
75 |-------------------------------------------------------------------------- |
|
76 | |
|
77 | If your SMTP server requires a username for authentication, you should |
|
78 | set it here. This will get used to authenticate with your server on |
|
79 | connection. You may also set the "password" value below this one. |
|
80 | |
|
81 */ |
|
82 |
|
83 'username' => env('MAIL_USERNAME'), |
|
84 |
|
85 /* |
|
86 |-------------------------------------------------------------------------- |
|
87 | SMTP Server Password |
|
88 |-------------------------------------------------------------------------- |
|
89 | |
|
90 | Here you may set the password required by your SMTP server to send out |
|
91 | messages from your application. This will be given to the server on |
|
92 | connection so that the application will be able to send messages. |
|
93 | |
|
94 */ |
|
95 |
|
96 'password' => env('MAIL_PASSWORD'), |
|
97 |
|
98 /* |
|
99 |-------------------------------------------------------------------------- |
|
100 | Sendmail System Path |
|
101 |-------------------------------------------------------------------------- |
|
102 | |
|
103 | When using the "sendmail" driver to send e-mails, we will need to know |
|
104 | the path to where Sendmail lives on this server. A default path has |
|
105 | been provided here, which will work well on most of your systems. |
|
106 | |
|
107 */ |
|
108 |
|
109 'sendmail' => '/usr/sbin/sendmail -bs', |
|
110 |
|
111 /* |
|
112 |-------------------------------------------------------------------------- |
|
113 | Mail "Pretend" |
|
114 |-------------------------------------------------------------------------- |
|
115 | |
|
116 | When this option is enabled, e-mail will not actually be sent over the |
|
117 | web and will instead be written to your application's logs files so |
|
118 | you may inspect the message. This is great for local development. |
|
119 | |
|
120 */ |
|
121 |
|
122 'pretend' => false, |
|
123 |
|
124 ]; |