重置密码通过smtp发送邮件,发送不报错但收不到


我使用的是阿里云的邮件推送服务,在本地可以正常借助smtp发送邮件,但用相同配置通过服务器上的laravel的重置密码发送邮件,就始终收不到。在阿里云控制台也看不到发送记录。以下是/config/mail.php中的配置,请问有问题吗?或者如何看到laravel发送邮件的状态信息?

<?php
return [
/
|--------------------------------------------------------------------------
| Mail Driver
|--------------------------------------------------------------------------
/

'driver' => env('MAIL_DRIVER', 'smtp'),
/*
|--------------------------------------------------------------------------
| SMTP Host Address
|--------------------------------------------------------------------------
*/

'host' => env('MAIL_HOST', 'smtpdm.aliyun.com'),

/*
|--------------------------------------------------------------------------
| SMTP Host Port
|--------------------------------------------------------------------------
*/

'port' => env('MAIL_PORT', 25),

/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
*/

'from' => ['address' => 'register@dm.obfish.top', 'name' => 'abc'],

/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
*/

'encryption' => env('MAIL_ENCRYPTION', null),

/*
|--------------------------------------------------------------------------
| SMTP Server Username
|--------------------------------------------------------------------------
*/

'username' => env('register@dm.obfish.top'),

/*
|--------------------------------------------------------------------------
| SMTP Server Password
|--------------------------------------------------------------------------
*/

'password' => env('***********'), //我确认密码无误

];


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: lumen未开启DB门面,如何获取insert后的id值

>> 下一篇: mac 执行php artisan migrate后 apache 无法访问public目录了