· 9 years ago · Oct 01, 2016, 04:42 PM
1<?php
2
3return [
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",
15 | "ses", "sparkpost", "log"
16 |
17 */
18
19 'driver' => env('MAIL_DRIVER', 'smtp'),
20
21 /*
22 |--------------------------------------------------------------------------
23 | SMTP Host Address
24 |--------------------------------------------------------------------------
25 |
26 | Here you may provide the host address of the SMTP server used by your
27 | applications. A default option is provided that is compatible with
28 | the Mailgun mail service which will provide reliable deliveries.
29 |
30 */
31
32 'host' => env('MAIL_HOST', 'smtp.gmail.com'),
33
34 /*
35 |--------------------------------------------------------------------------
36 | SMTP Host Port
37 |--------------------------------------------------------------------------
38 |
39 | This is the SMTP port used by your application to deliver e-mails to
40 | users of the application. Like the host we have set this value to
41 | stay compatible with the Mailgun e-mail application by default.
42 |
43 */
44
45 'port' => env('MAIL_PORT', 465),
46
47 /*
48 |--------------------------------------------------------------------------
49 | Global "From" Address
50 |--------------------------------------------------------------------------
51 |
52 | You may wish for all e-mails sent by your application to be sent from
53 | the same address. Here, you may specify a name and address that is
54 | used globally for all e-mails that are sent by your application.
55 |
56 */
57
58 'from' => ['address' => 'example@gmail.com', 'name' => 'example'],
59
60 /*
61 |--------------------------------------------------------------------------
62 | E-Mail Encryption Protocol
63 |--------------------------------------------------------------------------
64 |
65 | Here you may specify the encryption protocol that should be used when
66 | the application send e-mail messages. A sensible default using the
67 | transport layer security protocol should provide great security.
68 |
69 */
70
71 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
72
73 /*
74 |--------------------------------------------------------------------------
75 | SMTP Server Username
76 |--------------------------------------------------------------------------
77 |
78 | If your SMTP server requires a username for authentication, you should
79 | set it here. This will get used to authenticate with your server on
80 | connection. You may also set the "password" value below this one.
81 |
82 */
83
84 'username' => env('write mail without @gmail.com'),
85
86 /*
87 |--------------------------------------------------------------------------
88 | SMTP Server Password
89 |--------------------------------------------------------------------------
90 |
91 | Here you may set the password required by your SMTP server to send out
92 | messages from your application. This will be given to the server on
93 | connection so that the application will be able to send messages.
94 |
95 */
96
97 'password' => env('********'),
98
99 /*
100 |--------------------------------------------------------------------------
101 | Sendmail System Path
102 |--------------------------------------------------------------------------
103 |
104 | When using the "sendmail" driver to send e-mails, we will need to know
105 | the path to where Sendmail lives on this server. A default path has
106 | been provided here, which will work well on most of your systems.
107 |
108 */
109
110 'sendmail' => '/usr/sbin/sendmail -bs',
111
112];