Skip to content

Commit 3b1a79f

Browse files
committed
添加邮件配置
1 parent 23de830 commit 3b1a79f

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ DB_PWD=root
22
DB_NAME=webbug
33
DB_USER=root
44
DB_HOST=127.0.0.1
5-
DB_PREFIX=wb_
5+
DB_PREFIX=wb_
6+
7+
EMAIL_USER='test'
8+
EMAIL_PWD='test'
9+
EMAIL_PORT='25'
10+
EMAIL_HOST='test.com'

config/email.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

33
return [
4-
'host' => 'smtp.qq.com',
5-
'port' => '465',
4+
'host' => env('EMAIL_HOST',''),
5+
'port' => env('EMAIL_PORT',''),
66
'is_ssl' => true,
7-
'username' => '[email protected]',
8-
'password' => 'gjvtjszssgvtiefh',
7+
'username' => env('EMAIL_USER',''),
8+
'password' => env('EMAIL_PWD',''),
99
];

0 commit comments

Comments
 (0)