hyperf-chat/config/autoload/mail.php

66 lines
2.0 KiB
PHP
Raw Normal View History

2020-12-02 15:14:29 +08:00
<?php
2020-12-19 18:06:29 +08:00
declare(strict_types=1);
/**
*
* This file is part of the My App.
*
* Copyright CodingHePing 2016-2020.
*
* This is my open source code, please do not use it for commercial applications.
*
* For the full copyright and license information,
* please view the LICENSE file that was distributed with this source code
*
* @author CodingHePing<847050412@qq.com>
* @link https://github.com/codingheping/hyperf-chat-upgrade
*/
2020-12-02 15:14:29 +08:00
return [
/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
|
| Here you may provide the host address of the SMTP server used by your
| applications. A default option is provided that is compatible with
| the Mailgun mail service which will provide reliable deliveries.
|
*/
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
|
| This is the SMTP port used by your application to deliver e-mails to
| users of the application. Like the host we have set this value to
| stay compatible with the Mailgun e-mail application by default.
|
*/
2020-12-19 18:06:29 +08:00
'port' => env('MAIL_PORT', 465),
2020-12-02 15:14:29 +08:00
/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
|
| If your SMTP server requires a username for authentication, you should
| set it here. This will get used to authenticate with your server on
| connection. You may also set the "password" value below this one.
|
*/
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
2020-12-19 18:06:29 +08:00
'from' => env('MAIL_FROM_ADDRESS'),
2020-12-02 15:14:29 +08:00
2020-12-19 18:06:29 +08:00
'name' => env('MAIL_FROM_NAME'),
2020-12-02 15:14:29 +08:00
];