забыл пароль Laravel посылает электронную почту, которая дает ошибку, как:Не удается отправить сообщение без адреса отправителя в Laravel 5.2 Я дал .env и mail.php как
Swift_TransportException in AbstractSmtpTransport.php line 162:
Не удается отправить сообщение без адреса отправителя
Я уже установил свою учетную запись электронной почты в .env
и mail.php
обе.
Мой .env:
MAIL_DRIVER=smtp
MAIL_HOST=smtp-mail.outlook.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=pass
MAIL_ENCRYPTION=tls
и мой mail.php является
<?php
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'smtp-mail.outlook.com'),
'port' => env('MAIL_PORT', 587),
'from' => ['[email protected]' => null, 'Himanshu Raval' => null],
/*
|--------------------------------------------------------------------------
| E-Mail Encryption Protocol
|--------------------------------------------------------------------------
|
| Here you may specify the encryption protocol that should be used when
| the application send e-mail messages. A sensible default using the
| transport layer security protocol should provide great security.
|
*/
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
/*
|--------------------------------------------------------------------------
| 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('[email protected]'),
'sendmail' => '/usr/sbin/sendmail -bs',
];
я попробовал php artisan config:cache
тоже, но после того, что он дает ту же ошибку.
http://stackoverflow.com/questions/ 31871806/laravel-homestead-swift-can not-send-message-without-a-sender-address –
извините, моя ошибка выполнена! –