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