关于laravel框架的邮件服务
Swift_TransportException in AbstractSmtpTransport.php line 383:
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required
"
有没有人遇到和我一样的错误?
composer.json
config/mail.php 配置如下
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.163.com'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => '18565330507@163.com', 'name' => 'Run'],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('18565330507@163.com'),
'password' => env('网易邮箱设置的第三方登录授权码'),
'sendmail' => '/usr/sbin/sendmail -bs',
.env文件
服务器端口情况
弄了一个多小时了
Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required
"
有没有人遇到和我一样的错误?
composer.json
config/mail.php 配置如下
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp.163.com'),
'port' => env('MAIL_PORT', 587),
'from' => ['address' => '18565330507@163.com', 'name' => 'Run'],
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('18565330507@163.com'),
'password' => env('网易邮箱设置的第三方登录授权码'),
'sendmail' => '/usr/sbin/sendmail -bs',
.env文件
服务器端口情况
弄了一个多小时了
2 个回复
json_vip
赞同来自: cuihua
cuihua - 生如灿烂之花
赞同来自: